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

使用多线程动态连接运行时库的MFC程序,   需要使用MFC动态连接库.
改工程设置: 项目-->右键-->属性-->配置属性-->常规-->“项目默认值”-->MFC的使用-->“在共享 DLL 中使用 MFC”

原文地址:https://www.cnblogs.com/lovemyhuangmei/p/2868617.html