Seit Jahren nutze ich eine include aus dem Forum für die libmysqlc.
Das ging so:
Code: Alles auswählen
CFF_MySQL_Real_Connect = GetFunction(#libmysql, "mysql_real_connect")
Procedure MySQL_Real_Connect (dbHnd,host.s,user.s,password.s,db.s,port.l,options.l)
ProcedureReturn CallFunctionFast(CFF_MySQL_Real_Connect,dbHnd, host, user, password.s, db, port, 0, options)
EndProcedure
Bevor nun die Antwort lautet "Das macht man mit Prototypes...!!!" habe ich das natürlich gemacht.
Code: Alles auswählen
Prototype.l proto_connect(dbHnd, host, user, passwd, db, port, nul, options)
mysql_real_conntect.proto_connect=GetFunction(1, "mysql_real_connect")
Debug mysql_real_conntect(dbHnd, *host, *user, *passwd, *db, port,*null, 0)
Hier noch die Beschreibung von Mysql:
Hat jemand eine Idee?mysql_real_connect()
MYSQL *mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd,
const char *db, unsigned int port, const char *unix_socket, unsigned long client_flag)