Unix Technical Forum

c++/stl to access informix database

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


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 09:27 PM
jgm
 
Posts: n/a
Default c++/stl to access informix database

i work with:
os:aix
database:ids 9.0

esql/c is a interface for c to access informix database,
but i want to access informix database with c++/stl。
it's ok ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 09:27 PM
Jonathan Leffler
 
Posts: n/a
Default Re: c++/stl to access informix database

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/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com