VS2010中Windows应用程序生成解决方案弹出致命错误

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]
VS2010中Windows应用程序生成解决方案弹出致命错误
解决办法:
项目->右键属性->配置属性->常规->项目默认值->MFC的使用:

从共享DLL中使用MFCVS2010中Windows应用程序生成解决方案弹出致命错误
参考资料:https://zhidao.baidu.com/