vs 2008 error

来源:互联网 发布:淘宝信誉度有什么用 编辑:程序博客网 时间:2024/06/06 18:25

#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>


原创粉丝点击