Tuyen Chau
2006-10-19 03:33:34 UTC
Is there any option to omniidl to generate __declspec(dllexport) for
each of the symbol name so that C++ stubs can be packaged as a DLL on
Windows? Orbix does it by default, eg.
#ifdef _MSC_VER
#ifdef IT_EXPORT_DLL_Echo
#define IT_DECLSPEC_Echo __declspec(dllexport)
#else
#ifdef IT_IMPORT_DLL_Echo
#define IT_DECLSPEC_Echo __declspec(dllimport)
#else
#define IT_DECLSPEC_Echo
#endif
#endif
#else
#define IT_DECLSPEC_Echo
#endif
class IT_DECLSPEC_Echo Echo : ...
{
public:
...
}
Thanks,
Tuyen
each of the symbol name so that C++ stubs can be packaged as a DLL on
Windows? Orbix does it by default, eg.
#ifdef _MSC_VER
#ifdef IT_EXPORT_DLL_Echo
#define IT_DECLSPEC_Echo __declspec(dllexport)
#else
#ifdef IT_IMPORT_DLL_Echo
#define IT_DECLSPEC_Echo __declspec(dllimport)
#else
#define IT_DECLSPEC_Echo
#endif
#endif
#else
#define IT_DECLSPEC_Echo
#endif
class IT_DECLSPEC_Echo Echo : ...
{
public:
...
}
Thanks,
Tuyen