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
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
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
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
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
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