jchristian
Computer
- May 17, 2003
- 1
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 "stdafx.h"
#include <sql.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n"
return 0;
}
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 "stdafx.h"
#include <sql.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n"
return 0;
}