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:
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- [Solved] Fatal error C1083: unable to open include file: ‘d3dx9.h’
- MFC:: error C2065: “IDD_DIALOG1”: undeclared identifier Sending and handling custom messages in MFC threads
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] Compile Error: cannot open include file ‘afxres.h‘
- [Solved] Software Compile Error: xdo.c:29:34: fatal error: X11/extensions/XTest.h:
- LINK : fatal error LNK1104: Cannot Open the File “mfc90ud.lib”
- [Solved] Android12 Error: fatal error: ‘mediadrm/ICrypto.h‘ file not found
- [Solved] Linux R Pack Error: cram/cram_io.c:61:10: fatal error: lzma.h: No such file or directory
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- Mac Pyaudio Installation fatal error: ‘portaudio.h‘ file not found
- fatal error: libusb.h: No such file or directory [How to Solve]
- [Solved] Mac VS Code fatal error: ‘bits/stdc++.h‘ file not found
- bazel Compile Error: absl/base/policy_checks.h:79:2: error: #error “C++ versions less than C++14 are not supported.”
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- How to Solve Fatal error stdatomic in C/C++ Compilation
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler