• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

fatal error 1189

fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
0
kirthir
Asked:
kirthir
1 Solution
 
jkrCommented:
That error message is on point. Do not '#include <windows.h>' in a MFC app, use '#include "StdAfx.h" instead (it'll pull in windows.h).
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now