MFC and DLL
-
Hello I use MFC in a DLL. When linking, i get a messinge telling that _DllMain@12 symbol is already defined in a library nafxcwd.lib and there is a conflict with the symbol defined in my program. Isn't it possible to use MFC in a DLL ? If possible, how to do it ? Thank you
-
Hello I use MFC in a DLL. When linking, i get a messinge telling that _DllMain@12 symbol is already defined in a library nafxcwd.lib and there is a conflict with the symbol defined in my program. Isn't it possible to use MFC in a DLL ? If possible, how to do it ? Thank you
See this
-
See this
Thank you, but I hava already tried this. This is not exactly my problem. In your example, there is a conflict between two libraries, so you have to include them in the right order. For instance ' mfcs42d.lib(dllmodul.obj): error LNK2005: _DllMain@12 already defined in msvcrtd.lib(dllmain.obj)' In my problem, the symbol is already defined in prog.obj (which must be the object code associated with my code prog.cpp) : 'msvcrtd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in prog.obj' As I'm developping a DLL, I think there is a conflict between my DllMain and the one from the library
-
See this
I have (perhaps) solved the problem by including my DllMain in a namespace. The DLL is compiled and linked, but I can't use my dialog : CDlgParamSynchro* dlg = new CDlgParamSynchro (CWnd::FromHandle(this->h_fen)) ; dlg->DoModal() ; (this->h_fen is a HWND on a window) The dialog is initialized then display but frozen
-
Hello I use MFC in a DLL. When linking, i get a messinge telling that _DllMain@12 symbol is already defined in a library nafxcwd.lib and there is a conflict with the symbol defined in my program. Isn't it possible to use MFC in a DLL ? If possible, how to do it ? Thank you