Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Help Connecting to ORACLE from C++
Hello,
I am having a problem connecting to an ORACLE8 database from a C++ program. I am using the Microsoft Foundation classes CDatabase to open the database in my program with the command--
CDatabase db;
try{
db.Open(_T("SensorData"),FALSE, FALSE,_T("ODBC;"),FALSE);
} catch( CDBException* e )
It seems to work fine. But then when I try to open a table with the following code, it gives be an access violation error and shuts down.
CRecordSet rs;
try{
rs.Open(CRecordset::snapshot,_T("system.TimeReading"));
} catch( CDBException* e )
I am trying to open the table TimeReading owned by system.
Any help would be appreciated.
William Martin-Gill Received on Wed Jun 17 1998 - 00:00:00 CDT