MFC Static vs DLL Question
-
Greetings: I have this application here that builds absolutely error free when I specify that it be built using MFC from the DLL. But when I specify a build with MFC in a static library, suddenly, one of my classes won't compile. I get this message: MeasurementList.cpp(66) : error C2039: 'classCEditList' : is not a member of 'CEditList' c:\Development\uLTD\Software\uLTDTagTalk\EditList.h(50) : see declaration of 'CEditList' MeasurementList.cpp(66) : error C2065: 'classCEditList' : undeclared identifier CMeasurementList is derived from CEditList which is derived from CListCtrl. The main point I want to stress is that it builds and runs without any problems if I specify "Use MFC in a shared DLL". Has anybody ever run into this? Any idea what might be going on here? Thank you, Mark
-
Greetings: I have this application here that builds absolutely error free when I specify that it be built using MFC from the DLL. But when I specify a build with MFC in a static library, suddenly, one of my classes won't compile. I get this message: MeasurementList.cpp(66) : error C2039: 'classCEditList' : is not a member of 'CEditList' c:\Development\uLTD\Software\uLTDTagTalk\EditList.h(50) : see declaration of 'CEditList' MeasurementList.cpp(66) : error C2065: 'classCEditList' : undeclared identifier CMeasurementList is derived from CEditList which is derived from CListCtrl. The main point I want to stress is that it builds and runs without any problems if I specify "Use MFC in a shared DLL". Has anybody ever run into this? Any idea what might be going on here? Thank you, Mark
So have you looked at line 66 of
MeasurementList.cpp
, and line 50 ofEditList.h
? IsclassCEditList
the name of a class?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
So have you looked at line 66 of
MeasurementList.cpp
, and line 50 ofEditList.h
? IsclassCEditList
the name of a class?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
Hi David: Yes, I have. Can't find a thing wrong. What sort of things would I look for if the code builds without any problem if I specify use of the MFC DLL as apposed to using MFC in the static library? If it were something as obvious as a class name spelling error, that problem would show up regardless of the build type. There has to be something much more subtle going on here. Mark