[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misc. convention stuff
Peter Burns wrote:
>When building dlls for windows you need
>to tell the compiler that it should export certain symbols.
>The easiest way to do this is to put a __declspec(dllexport) before
>the symbol you want to export.
>You do it like this
>
>class __declspec(dllexport) ClassToBeExported
>{
>}
>
>Of course other compilers will think that you are trying to
>declar a class called __declspec so you need to create a macro
>if you want to be portable. This is done in QT as well as wxWindows.
>
>Here is how I defined the macro.
>
>#ifndef ppsEXPORT
>#ifdef WIN32
>#define ppsEXPORT __declspec( dllexport )
>#else
>#define ppsEXPORT
>#endif // WIN32
>#endif // ppsEXPORT
>
>
>If penguinplay has designed a different way to handle this problem I'll
>change to standard model.
Not yet. Use your version for now, I'll add a replacement in PenguinPlay.h
later.
Christian
--
Drive A: not responding...Formatting C: instead