"Normal Man" <coo...@yahoo.com> wrote in message
news:bc9ee28b.02030...@posting.google.com...
I think you can find bunch of well written OCI applications at
http://sourceforge.net .just search for ORACLE. Look at Apache::OWA -
module for Apache mod perl as C example, for C++ there is a lots Open Sourse
class wrappers, some of them I believe you can use not only as examples.
"Normal Man" <coo...@yahoo.com> wrote in message
news:bc9ee28b.02030...@posting.google.com...
I have a little class ... that allows you to the following thing:
#include "../db_ora/db.h"
int main(int argc, char *argv[])
{
DBConnection db;
db.open("scott/tiger");
DBItr myIterator ( &db, "SELECT ename,job FROM emp");
while(myIterator.next())
{
cout << "name: " << myIterator[0] << endl;
cout << "name: " << myIterator["ename"] << endl;
cout << "job: " << myIterator[1] << endl;
cout << "job: " << myIterator["job"] << endl;
}
return 1;
}
The stuff is derived from
http://codeguru.earthweb.com/mfc_database/Osql10.shtml
If you need the stuff on windows use the above URL ... for UNIX just send me
an e-mail.
Markus.
"Normal Man" <coo...@yahoo.com> wrote in message
news:bc9ee28b.02030...@posting.google.com...