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

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

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

guitao_w 2010-03-18 21:55:00 3791 Collection
classification column: C/C++ Article Tags: mfc c
copyright
program has this problem:

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

 

The solution is as follows, under Mark

  1. Add in the stdafx.h file: #include “afx.h”  
  2. Delete in the stdafx.h file: #include <windows.h>  

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *