Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version

版权声明:本文为博主原创文章,转载请注明出处,谢谢! https://blog.csdn.net/Binbin_IT/article/details/48293129

Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version 

#include <afx.h>

Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

解决方法:右击项目-->属性-->配置属性-->常规,然后在右边的“项目默认值”中的“MFC的使用”选项中选择“在共享 DLL 中使用 MFC”,在运行,解决了。


猜你喜欢

转载自blog.csdn.net/Binbin_IT/article/details/48293129
今日推荐