help regarding dll
-
Hi all! I m using a dll into my dialog based application. Now, in the next step, i want to access a class from my dialog based application into that dll. Is it possible? If yes, then how? Regards Usman Arif Usman Arif
-
Hi all! I m using a dll into my dialog based application. Now, in the next step, i want to access a class from my dialog based application into that dll. Is it possible? If yes, then how? Regards Usman Arif Usman Arif
Here's an example. This is in your header file. You will need to change the obvious defines etc to suit your own app. #ifdef MYCLASS_EXPORTS #define MYCLASSDDLL __declspec(dllexport) #else #define MYCLASSDDLL __declspec(dllimport) #ifdef _DEBUG //linkage #pragma comment (lib, "myclass_db.lib") #else #pragma comment (lib, "myclass.lib") #endif #endif // // class definition // class MYCLASSDLL CMyClass { }