free BDS Turbo C++ und mysql
-
hola leute
folgender code:
#include <vcl.h> #pragma hdrstop #include "Main.h" #include <windows.h> #include <winsock2.h> #include <mysql.h> #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } void __fastcall TForm1::Button1Click(TObject *Sender) { MYSQL *my; my = mysql_init(my); /* if(my == 0) { ShowMessage("Fehler bei Initialisierung"); return; } if( mysql_real_connect ( my, "kasten", "root", "001213", "gromit", 0, NULL, 0 ) == NULL) { ShowMessage("fehler beim connect"); return; } */ }beim ausfuehren springt er mir dann gleich in das CPU-fenster.
kann mir jemand sagen was ich da falsch mache ?
die libmysql.lib hab ich mit coff2omf und einmal mit libimp erzeugt. beides mal das gleiche ergebnis.Meep Meep