Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
When you upgrade your project from VC2005 to VC2008 you might get these errors:
mfcs90u.lib(oleexp.obj) : error LNK2005: _DllGetClassObject@12 already defined in d.obj
mfcs90u.lib(oleexp.obj) : error LNK2005: _DllCanUnloadNow@0 already defined in d.obj
Strictly in release builds though.
You can add "AFX_MANAGE_STATE(AfxGetStaticModuleState());" to the first line of InitInstance() in dllmain.cpp.
Comments
- Anonymous
September 11, 2008
PingBack from http://www.easycoded.com/dllgetclassobject-already-defined/