如果我在程序中添加#include〈windows.h〉
就会出现如下错误(只有这一个错误):
#error Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
--------------------
这个错误是由于没有添加MFC 动态链接库的原因吧
在工程属性-〉general-〉using MFC 选择 Use MFC in a Shared DLL 试试看