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]

2023-02-21,,

今天在开发过程中遇到了C1189 error。找了好久解决办法,最后自己解决了......

方法:工程右键->属性

编辑预处理器定义:

再次运行,就解决了。

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]的相关教程结束。

《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].doc》

下载本文的Word格式文档,以方便收藏与打印。