我正在创建一个Qt应用程序,我需要在其中使用mfc dll!(我使用的是vs2008)这样,当我尝试使用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 n
#ifdef _DLL#error Building MFC application with /MD[d] (CRT dll version) requires MFCPlease #define _AFXDLL or do not use /MD[d]#endif
我不知道如何修复这个错误,如果有人能帮我,那就太好了,我试过更改mfc属性,但仍然不能工作
我使用的是Visual Studio 2012。我希望创建一个完全自包含的程序,可以在没有安装visual studio的机器上使用,只需直接复制exe文件即可。我曾经需要先运行visual c++ 2012 redistributable才能使程序正常工作。有没有办法让所有的东西都在一个exe中运行?我也不想使用安装程序,因为它是一个相当简单的程序;用户使用安装程序所需的时间可能会比我的程序长…任何帮助都将不胜感激。