Help with regular/extension MFC dll
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I wrote a regular MFC dll which should display a dialog-box. I have a class derived from CDialog to display my dialog. Now, my exported class is a regular one (NOT MFC) which has a method Open to open the dialog. (I use a regular class since my client is a console application or none-MFC client) The problem is that i get assert on AfxGetResourceHandle(). When i added the statement "AFX_MANAGE_STATE(AfxGetStaticModuleState( ));" i got a link error saying: "mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in RewinderSimulator.obj mfcs42d.lib(dllmodul.obj) : error LNK2005: __pRawDllMain already defined in RewinderSimulator.obj". How can i solve my problem? Thanks, Dudi