fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

关于fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include

guitao_w 2010-03-18 21:55:00 3791 收藏
分类专栏: C/C++ 文章标签: mfc c
版权
程序出现这个问题:

fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>

解决如下,Mark下

1.在stdafx.h文件当中添加:#include   "afx.h"  
  2.在stdafx.h文件当中删除:#include   <windows.h>  
  这样试试看。。

参考http://topic.csdn.net/t/20040902/15/3333808.html
————————————————
版权声明:本文为CSDN博主「guitao_w」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/guitao_w/article/details/5394369

原文地址:https://www.cnblogs.com/okgogo2000/p/14751849.html