cannot open include file ‘afxres.h‘ WINDOWS.H already included WINDOWS.H already included. MFC apps

cannot open include file ‘afxres.h’
方法一:
项目->属性->VC++目录->包含目录,添加D:\VS\VS2012\VC\atlmfc\include,如图所示添加的路径为vs安装路径\VC\atlmfc\include,正确添加如下图所示,重新编译工程,即可成功。

	方法二

WINDOWS.H already included
一:首先说一下我的解决方案
这个不是问题的根源,直接往下找error,解决下面的error就可以了

WINDOWS.H already included. MFC apps must not #include

你可能感兴趣的:(C++,疑难杂症,MFC)