MFC DLL
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have two classes in a MFC DLL that use AFX_EXT_CLASS to export the classes (like below), but when I link it up to my application and include the header files for the classes I get a lot of errors (error C2228: left of '.Disconnect' must have class/struct/union type) - meaning the functions in the class don't have any code for them... but they should be in the DLL. Here are the classes I am trying to export. Any help would be good on what I am doing wrong, this is my first DLL experience. Thank you. class AFX_EXT_CLASS CFirstClass { } class AFX_EXT_CLASS CSecondClass { }