I have an MFC .exe application, and I created another project for a DLL with MFC dynamically linked to it.
Now, when I import that DLL through LoadLibrary, it crashes my application, because when the importing is done, the DLL calls AfxWinInit()
.
Should the DLL call AfxWinInit()
? How do I avoid it? Or is something else wrong?