This message was edited by stober at 2005-7-18 8:26:40
: hi i have two dlls
:
: in first dll:
: 1 . derived_class1 -> base_calss
: 1.1 . derived_class2 -> base_calss
: 2. dllexport void func(base_calss* bb);
:
: -------------------
: in second dll :
: i want to call the func several times one time with the first derived class other time with the second derived class
: but i need to create the classes how i export the classes so i can send the pointer to other dlls
:
:
I export the entire class, not just some methods. This is how I export classes in the *.h file
#ifdef _AITEXPORT // define this in the DLL project
#define DllExport __declspec( dllexport )
#else
#define DllExport __declspec( dllimport )
#endif
class DllExport CMyDateTime
{
// blabla
};