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

wierd SQL.H problem

Status
Not open for further replies.

jchristian

Computer
Joined
May 17, 2003
Messages
1
Location
AU
Hi There,

I just installed MSVC 6.0 and created an empty console application... I need it to connect to mysql.

all i did was:

#include <sql.h>

and the program spits out:

c:\program files\microsoft visual studio\vc98\include\sqltypes.h(114) : error C2146: syntax error : missing ';' before identifier 'SQLHWND'

the line in the file its talking about is :

#if defined(WIN32) || defined(OS2)
typedef HWND SQLHWND; //<<<---THIS LINE
#elif defined (UNIX)
typedef Widget SQLHWND;
#else
/* placehold for future O/S GUI window handle definition */
typedef SQLPOINTER SQLHWND;
#endif

I am sure there is nothing wrong with my file and that I have just set something up not correctly, but its weird because i havent even begun programming, the main file looks like this...

// mysql.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include <sql.h>



int main(int argc, char* argv[])
{

printf(&quot;Hello World!\n&quot;);
return 0;
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top