Loading MBCS Dll which is using UNICODE Static library throws Debug assertion in AppCore

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Issue description:
Create a simple MFC regular dll(MBCS) and create a simple static library(UNICODE). Link the static library to the dll. Now create simple MFC application that calls the loadlibrary to load the dll.
It throws the debug assertion from appcore.cpp file when calling AfxGetThread().
This happens with Visual Studio 2005,2006 and visual studio 6.

View the full article
 
Back
Top