Help on this error!!
-
Hii all i am getting a single error when i complile my project the error is:: c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include how to solve this error?????? thanks a lot
-
Hii all i am getting a single error when i complile my project the error is:: c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include how to solve this error?????? thanks a lot
So are you including
windows.h
like the error indicates?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
So are you including
windows.h
like the error indicates?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
no i am not including it(windows.h)!!! sud i send u my whole project source code...i am buililding a database project using ado i have included only comdef.h as an external header file....rest the mfc wizards add on its own which it does in every project thats y i am not able to sort this error out?? please help
-
no i am not including it(windows.h)!!! sud i send u my whole project source code...i am buililding a database project using ado i have included only comdef.h as an external header file....rest the mfc wizards add on its own which it does in every project thats y i am not able to sort this error out?? please help
smartymanav wrote: sud i send u my whole project source code Not necessary. Right above the "fatal error C1189..." line in the Build window should be the name of a .cpp file. Look in that file for any irregularities.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
smartymanav wrote: sud i send u my whole project source code Not necessary. Right above the "fatal error C1189..." line in the Build window should be the name of a .cpp file. Look in that file for any irregularities.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
the name of the file is stdafx.h!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) wat to do now... i have only added one line to this file is:: #include please help and thanks
-
the name of the file is stdafx.h!!! --------------------Configuration: Ado1 - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Error executing cl.exe. Ado1.exe - 1 error(s), 0 warning(s) wat to do now... i have only added one line to this file is:: #include please help and thanks
Ok, so you have a
#include
hierarchy like this:stdafx.cpp
|
\---stdafx.h
|
----afxv_w32.h
|
\---comdef.hIs that right?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown