¥¥¥¥¥ requires MFC shared dll version 有关问题 ¥100

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

Release下编译没问题,debug下编译出这个错误,怎么办
#define _AFXDLL 怎么写? 我只知道#pragma comment(lib,



还有,在[项目]——×××项目属性里边,设置“用静态库中使用MFC”,编译可通过了,但是在出现界面之前,弹框提示:


是什么原因? 点“忽略”,可以正常运行





------解决方案--------------------
第一个现象很简单,你在项目属性中取消多线程调试,就是 MD选项。
------解决方案--------------------
我也遇上过,随便找个地方把这句#define _AFXDLL贴上就行了
------解决方案--------------------
1>设置时使用MFC shared dll
2>在 设置 '_WINDOWS'的 栏里加 ',_AFXDLL'