Code:
long WINAPI mysql_init();



Thats hardly how the signature of the function looks like wink
Also, your check if h isn't NULL is too late there and no guarantee if mysql_init is not NULL.

And another note: Are you sure that you understand the security and licensing issues here? Lite-C isn't GPL compatible, so you either have to pay for MySQL or you simply can't use it without fearing legal consequences!

Last edited by JustSid; 05/26/12 16:44.

Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com