Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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