Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Help Connecting to ORACLE from C++

Help Connecting to ORACLE from C++

From: William Martin-Gill <wm3u_at_virginia.edu>
Date: 1998/06/17
Message-ID: <35880D37.F04AA29B@virginia.edu>#1/1

    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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US