×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

wierd SQL.H problem

wierd SQL.H problem

wierd SQL.H problem

(OP)
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;
}

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources