Export a class of a dll
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
My problem is that I want to export a MFC class inside a DLL. Normally, We only export a function of a DLL. Now, I want to export a class, but I don't know. Would you tell me this technique or point me to the specific websites.
class __declspec(dllexport) CYourMFC_Class:public CMFCObject { public: ///your code; };
You have to change the above to the following in your header file where you are using it... i.e the place where you are using the
dll
.class __declspec(dllimport) CYourMFC_Class:public CMFCObject { public: ///your code; };
Owner drawn Jesus Loves