RE: Informix Object Interface
Posted in 2004
Hi Greg. Yep! I am still working with Informix. Unfortunately, I am not familiar with C++. But..have you seen $INFORMIXDIR/demo/c++/ ? I found error handling code in csql2.cpp as bellow. my_error_handler(const ITErrorManager &errorobject, void *userdata, long errorlevel) { // Cast the user data into a stream ostream *stream = (ostream *) userdata; (*stream) << "my_error_handler: errorlevel=" << errorlevel << " sqlstate=" << errorobject.SqlState() << ' ' << errorobject.ErrorText() << endl; return IT_NOTHANDLED; } // 1 end IIUG, anyone help him ? -- Tsutomu Ogiwara from Tokyo Japan. ICQ#:168106592 >From: Greg Wood <GWood@Covista.com> >To: "'tsutomu_ogiwara@hotmail.com'" <tsutomu_ogiwara@hotmail.com> >Subject: Informix Object Interface >Date: Fri, 18 Jun 2004 11:59:05 -0400 > >First off let me say my name is Greg Wood and I found your email address in >an old newsgroup thread. I do not know if you still work for or with >informix or not but I have about exhausted my resources. > >I am using the informix object interface to develop applications in c++. (I >think me about 10 others are the only ones using the object interface as >almost no information exists on it). > >I can not figure out how to get the isam error code and/or description when >an error occurs. I can get the sqlcode but not the isam code. > >The headers files do show a call that the manual does not for IsamError and >IsamErrorText but IsamError seems to always be false and IsamErrorText >always returns null. > >I would appreciate any help you might could give me or you forwarding this >email to anyone else you think might could help. > > >Thanks in Advance > >Greg _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail sending to informix-list