Assume that you have a Visual C++ Microsoft Foundation Class (MFC) DLL module that is built by Microsoft Visual Studio 2012 for Windows Embedded Compact. When you load the DLL on a Windows Embedded Compact 2013-based device, the load fails at run-time. In debug builds, debug asserts from calling function LoadLibrary () indicate a problem with the macro AFX_Module_State. In release builds, the module loads. However, the device eventually crashes.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.