FW: A MySQL C++ API problem about "Connection::close()" & "Connection::purge()".

2002-04-30 Thread ???
In MySQL C++ API http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-win32-borland.zip , http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-1-win32-vc++.zip. The head file connection1.hh has two problems. 1. Function Connection::close() void close(void) { mysql_close(&mysql); } 2. Function Conn

A MySQL C++ API problem about "Connection::close()" & "Connection::purge()"!

2002-04-30 Thread ???
In MySQL C++ API http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-win32-borland.zip , http://www.mysql.com/Downloads/mysql++/mysql++-1.7.1-1-win32-vc++.zip. The head file connection1.hh has two problems. 1. Function Connection::close() void close(void) { mysql_close(&mysql); } 2. Function Conn

Re: Mysql C API Problem

2001-09-01 Thread Uwe Sander
just add mysql_init(&csql); before accessing the struct for any purpose. Sure it helps (I made the same mistake, got the same result ;-) Uwe - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 01, 2001 8:25 PM Subj

Mysql C API Problem

2001-09-01 Thread BeachTHO
am connecting to a mysql server on localhost i put all the code in a function call mysql_conlocal MYSQL csql; int mysql_conlocal() { puts("Connecting to Mysql Server"); if(!mysql_connect(&csql,DBHOST,DBUSER,DBPASS)) { puts("Failure!"); puts("This Could Because"); puts("A Your Username or Passwo

Re: MySQL C API: Problem with load_defaults

2001-01-20 Thread Paul DuBois
On Sat, Jan 20, 2001 at 02:53:22PM -0500, Hlady, Brian wrote: > I'm using the code found on page 245 - 247 of Paul Dubois' book, MySQL. When > I attempt to make it > under Code Crusader, I get the error found below. > > gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c common.c -o > co

MySQL C API: Problem with load_defaults

2001-01-20 Thread Hlady, Brian
I'm using the code found on page 245 - 247 of Paul Dubois' book, MySQL. When I attempt to make it under Code Crusader, I get the error found below. gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c common.c -o common.o gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c clien