Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WINDOWS.H already included. MFC apps must not #include <windows.h>

Status
Not open for further replies.

momukhtar

Programmer
Mar 10, 2008
8
I am making the dll out of an exe. I know that this error goes out when u adjust the order of your includes. I want to know the actual cause of this error and what we have to consider in order to get rid of it.

Error 2 fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxv_w32.h 16

 
What order do you have your includes in?
 
Have you tried not including <windows.h> like it says?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top