Feb 19, 2004 #1 Skute Programmer Jul 21, 2003 272 GB Hi, how can i create a class in a DLL and then use it in an EXE? Im just using Win32 - no managed, no MFC. Cheers Skute "There are 10 types of people in this World, those that understand binary, and those that don't!"
Hi, how can i create a class in a DLL and then use it in an EXE? Im just using Win32 - no managed, no MFC. Cheers Skute "There are 10 types of people in this World, those that understand binary, and those that don't!"
Feb 19, 2004 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB class __declspec(dllexport) class{implement}; in the dll and class __declspec(dllimport) class{declarations}; in the .exe Ion Filipski Upvote 0 Downvote
class __declspec(dllexport) class{implement}; in the dll and class __declspec(dllimport) class{declarations}; in the .exe Ion Filipski
Feb 19, 2004 Thread starter #3 Skute Programmer Jul 21, 2003 272 GB what do you mean by declarations in the exe? ie have a define section in a common header file such as: #ifdef EXE_EXPORT #define EXE_API __declspec (dllexport) #else #define EXE_API __declspec (dllimport) #endif class EXE_API MyClass { public: MyClass(); private: int iTest; } ? Skute "There are 10 types of people in this World, those that understand binary, and those that don't!" Upvote 0 Downvote
what do you mean by declarations in the exe? ie have a define section in a common header file such as: #ifdef EXE_EXPORT #define EXE_API __declspec (dllexport) #else #define EXE_API __declspec (dllimport) #endif class EXE_API MyClass { public: MyClass(); private: int iTest; } ? Skute "There are 10 types of people in this World, those that understand binary, and those that don't!"