我正在创建一个Qt应用程序,我需要在其中使用mfc dll! (我使用VS2008)如何在Qt应用程序中使用MFC dll
的Qt应用程序项目属性: 配置类型:应用 使用标准Windows库
这样,当我尝试使用MFC DLL我得到(编译时):
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
如果我的MFC属性更改为Use MFC in a shared DLL
应用构建, 但是当我尝试运行它,我得到
Unhandled exception at 0x78a5b48a (mfc90ud.dll) in myApplication.exe: 0xC0000005: Access violation reading location 0x00000000.
任何想法的人?
谢谢!