Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

#pragma make_public

3 views
Skip to first unread message

Howard Swope

unread,
May 15, 2009, 11:23:47 AM5/15/09
to

#pragma make_public

Is there a way to do this for an entire library an not just one type at a time. This is killing me. I have to do this for like 100+ types. Ouch!!!

--
Howard Swope [Howard.SwopeATnavteqDOTcom]
Technical Lead
Media Development
Navteq Traffic [http://www.navteqmedia.com/]

Howard Swope

unread,
May 27, 2009, 9:42:30 AM5/27/09
to
PLEASE ANSWER....

There must be a way to do this. This is really onerous.
Thanks,
-- 
Howard Swope [howard.swopeATnavteqDOTcom]
Technical Lead
Media Development
Navteq Traffic [http://www.navteq.com][http://www.traffic.com]

Ben Voigt [C++ MVP]

unread,
May 27, 2009, 4:27:52 PM5/27/09
to
Howard Swope wrote:
> PLEASE ANSWER....
>
> There must be a way to do this. This is really onerous.

Well, you could use reflection to script the pragma generation, then
#include that file into your build.

But I've never had to use #pragma make_public, let alone on hundreds of
types. What is your use case?

Howard Swope

unread,
Jun 30, 2009, 10:59:54 AM6/30/09
to Ben Voigt [C++ MVP]
Hey Ben:

Our application has multiple dll's that link dynamically to an unmanaged, third party, game engine. So even though the types are the same, and we are linking to a single instance of the middleware dll the types are scoped as private in the respective dll's. Anytime we make a call between our dll's that pass one of the types from the game engine, we have to mark the type with the pragma. There are many of these calls.

Thanks for your thoughts on this matter.
-- 
Howard Swope [howard.swopeATnavteqDOTcom]
Technical Lead
Media Development
Navteq Traffic [http://www.navteq.com][http://www.traffic.com]

Howard Swope

unread,
Jun 30, 2009, 11:02:50 AM6/30/09
to


Ben Voigt [C++ MVP] wrote:

> Howard Swope wrote:
>
>> PLEASE ANSWER....
>>
>> There must be a way to do this. This is really onerous.
>>
>
> Well, you could use reflection to script the pragma generation, then
> #include that file into your build.
>
> But I've never had to use #pragma make_public, let alone on hundreds of
> types. What is your use case?
>
>

Our application has multiple dll's that link dynamically to an
unmanaged, third party, game engine. So even though the types are the
same, and we are linking to a single instance of the middleware dll the
types are scoped as private in the respective dll's. Anytime we make a
call between our dll's that pass one of the types from the game engine,
we have to mark the type with the pragma. There are many of these calls.

Thanks for your thoughts on this matter.

>> Howard Swope wrote:
>> #pragma make_public
>>
>> Is there a way to do this for an entire library an not just one type
>> at a time. This is killing me. I have to do this for like 100+ types.
>> Ouch!!!
>>
>> --
>> Howard Swope [Howard.SwopeATnavteqDOTcom]
>> Technical Lead
>> Media Development
>> Navteq Traffic [http://www.navteqmedia.com/]
>>
>> Thanks,
>>
>
>
>

--
Howard Swope [howard.swopeATnavteqDOTcom]
Technical Lead
Media Development
Navteq Traffic [http://www.navteq.com][http://www.traffic.com]

0 new messages