#error : WINDOWS.H already included. MFC apps must not #include <windows.h>
在stdafx.h里面包含#include <afxwin.h>,然后把所有其它文件的#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]
项目-〉属性-〉use of MFC 改成use MFC in a share dll。头文件:#include
<afx.h>