进入Project->Settings->General 下,在下拉框中选“Use MFC in a Static Library”(使用MFC做为静态链接库);

然后添加头文件#include <afxwin.h>,并且要放在其它头文件前。

否则,会有#error : WINDOWS.H already included. MFC apps must not #include <windows.h>的错误提示。

posted on 2014-05-16 10:43  CodeV  阅读(817)  评论(0)    收藏  举报