Re: C API with .NET
Posted by: Hasani Blackwell
Date: January 02, 2006 10:47AM

1) Make sure you include <winsock.h> because that's where the SOCKET structure is defined

2) If that doesn't work, read below

For me to convert the flag to an exe, I need to modify one setting in the linker (/OUT:) and change the "Configuration Type" to "Application (.exe)"

I know the vc 2005 compiler is supposed to be a lot different than the 2003 compiler (e.x.: deprecated switches and flags) so there might be problems, but

Do you have precompiled headers enabled?
If so, did you add the following headers to the stdafx.h

#include <windows.h>
#include <winsock.h>
#include <mysql.h>
#include <mysql_com.h>

and then add
#include <stdafx.h> to all cpp files.

Could you also post the compiler errors, the linker command line, and the compiler command line?

Options: ReplyQuote


Subject
Views
Written By
Posted
864
January 02, 2006 03:58AM
527
January 02, 2006 04:25AM
478
January 02, 2006 05:20AM
Re: C API with .NET
454
January 02, 2006 10:47AM
641
January 03, 2006 04:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.