This is a discussion on c++/stl to access informix database within the Informix forums, part of the Database Server Software category; --> i work with: os:aix database:ids 9.0 esql/c is a interface for c to access informix database, but i want ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| jgm wrote: > i work with: > os:aix > database:ids 9.0 I hope you don't mean 9.00 (or any 9.0x) -- that has been obsolete for, oh, 7 years! > esql/c is a interface for c to access informix database, > but i want to access informix database with c++/stl > it's ok ??? You can do it if you code it. Your best bet is probably to write suitable iterator classes in C++, and implement their data collection qualities by calling onto C code (extern "C" functions) which, in turn, use ESQL/C. Alternatively, you can use the non-STL C++ code distributed with ClientSDK. There's at least one article in the IIUG archives about using ESQL/C with C++, including scripts and toy code. The toy code is just enough to demonstrate that it works -- it isn't even an attempt at implementing STL (it pre-dates the standardization of STL, come to that). -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/ |