14 messages in com.mysql.lists.win32Runtime Error: mysql++ API and Borlan...
FromSent OnAttachments
Gus Almighty03 Apr 2001 11:56 
Yeoh HS03 Apr 2001 18:09 
Gus Almighty03 Apr 2001 20:08 
Arturs Aboltins04 Apr 2001 00:44 
Sinisa Milivojevic04 Apr 2001 04:10 
Arturs Aboltins04 Apr 2001 05:05 
Gus Almighty04 Apr 2001 11:33 
Yeoh HS04 Apr 2001 18:39 
Yeoh HS05 Apr 2001 01:48 
Sinisa Milivojevic05 Apr 2001 04:00 
Sinisa Milivojevic05 Apr 2001 04:06 
Yeoh HS05 Apr 2001 18:04 
Sinisa Milivojevic06 Apr 2001 04:16.cc
Yeoh HS06 Apr 2001 18:28 
Subject:Runtime Error: mysql++ API and Borland's C++ 5.5
From:Yeoh HS (yeo@yahoo.com)
Date:04/05/2001 01:48:11 AM
List:com.mysql.lists.win32

Hi Arturs and Gus,

Here's my progress on the use of mysql++ API with Borland's C++ 5.5

My small test program compiled and linked without any errors.

There are two warnings as follows: ! Warning W8038 d:\mysqlpp\include\sqlplus\type_info1.hh 23: Constant member 'mysql_ti_sql_typ * e_info::_base_type' is not initialized in function mysql_ti_sql_type_info::mysql_ti_sql_type_i * fo() ! Warning W8038 d:\mysqlpp\include\sqlplus\type_info1.hh 23: Constant member 'mysql_ti_sql_typ * e_info::_default' is not initialized in function mysql_ti_sql_type_info::mysql_ti_sql_type_inf * ()

I've linked without Dynamic RTL. Also, linked with libmysql and mysqlplus, in that order.

The program causes this runtime error: A caused an invalid page fault in module KERNEL32.DLL at 0167:bff7b9a6. Registers: EAX=00000000 CS=0167 EIP=bff7b9a6 EFLGS=00000246 EBX=0066fadc SS=016f ESP=0066f6c4 EBP=0066f6d0 ECX=0066faf4 DS=016f ESI=0066faf4 FS=118f EDX=00da40dc ES=016f EDI=00000000 GS=0000 Bytes at CS:EIP: ff 76 04 e8 13 89 ff ff 5e c2 04 00 56 8b 74 24 Stack dump: 00000001 00408476 0066faf4 0066f700 00407cc8 0066faf4 0066f730 00418fd3 00424184 0066f6dc 00000008 0066f750 0066f8ec 00000000 00418fd3 0066f770

Here's the source: #include <windows.h> #include <iostream> #include <sqlplus.hh>

int main()

Connection con("Contacts","localhost","root","qwerty1234"); Query query = con.query(); query << "select * from addressbook"; Result res = query.store(); cout << "Query: " << query.preview() << endl; cout << "Records Found: " << res.size() << endl; return 0;

}

Regards, Yeoh