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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error c1189

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
ok in my application i have this error message when i try to build my project:
&quot;C:\program files\microsoft visual studio\vc98\mfc\include\afxv_32.h(14): fatal error C1189: #error : WINDOWS.H already included. MFC apps must mot &quot;include <windows.h>

my application is created with mfc appwizard exe, and i have choosen the dialog based option.
So, in my dialog box i have put an button which must access an excel database with ADO method.
so....? idon't know what is happening.

thanks

gerald
 
The Visual C++ compiler is extremely picky, there is probably nothing wrong with your code, but something in your code is provoking this nonsense. Try to &quot;re-adjust&quot; your code just a bit and still provide the same functionality, I'll bet the error will go away
 
in the begining on windows.h is some
#if !defined(__I_D0N_T_REMEMBER_EXACTLY_WHAT)
#define __I_D0N_T_REMEMBER_EXACTLY_WHAT
put the second line before including stdafx.h John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top