1 message in com.mysql.lists.win32MySQL API and VC++?
FromSent OnAttachments
Andrew Hudson01 Apr 2000 14:17 
Subject:MySQL API and VC++?
From:Andrew Hudson (an@hudson3278.fsnet.co.uk)
Date:04/01/2000 02:17:35 PM
List:com.mysql.lists.win32

All,

I'm trying to write a simple program using the MySQL API that comes with the
MySQL windows distribution. One is a Windows console (DOS mode) application,
and one is a simple Win32 application. Both are compiled using Microsoft Visual
C++ 6 (with SP3).

Here is the source code for the DOS program:

------ #include "windows.h" #include "mysql.h"

int main() { return 0; }

----------

That program compiles just fine.

Here is the code for the Windows application:

---------- #include "stdafx.h" #include "windows.h" #include "mysql.h"

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR
lpCmdLine, int nCmdShow) { return 0; }

----------

That does not compile, and gives me the 4 errors. I haven't the first clue why
I get these errors when I use such a simple Windows program... the DOS program
compiles just fine.

Any ideas?

Paul "ThunderHud" Hudson (Please send any replies to Thun@thecgf.org :)