Questions on ODBC & CRecordset 
Author Message
 Questions on ODBC & CRecordset


I have a DirectX application where I want to manipulate and retrieve
data from an MS Access database file, MyFile.mdb.

I am able to display and change the data in MyFile.mdb with a DataGrid
ActiveX control on my application (through an MS ADO Data Control).

Now I want to read the data in MyFile.mdb so I can use it in my program.  

I tried to create a new class with a CRecordset base class, binding it
to MyFile.mdb.  ClassWizard allowed me to do this and everything looked
ok except when I went to compile it I got the compilation error
"CRecordset: base class undefined" among others.  I tried to include
some files in my stdafx.h file (specifically <afxdb.h>) that were
included in another project that was using CRecordset successfully, but
the compiler still wouldn't get past this error.

Can anyone tell me what I need to do to get my project to recognize
CRecordset as a legitimate class?  Or, is there another way I should be
using to read the data from MyFile.mdb?

Brad McMillan

Sun, 11 Sep 2005 14:10:47 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ODBC, CRecordset & CTime

2. CRecordset class & Visual Foxpro ODBC driver

3. CDaoRecordset/CRecordset/ODBC Question

4. ODBC CRecordset m_strFilter CString question

5. ODBC, CRecordSet - question

6. ODBC and CRecordSet Sort Question

7. EXCEL ODBC: Can CRecordSet Update spreadsheet?

8. CRecordset for ODBC 3.0

9. CRecordset/CDatabase broken by ODBC 3.5?

10. Using CRecordSet for ODBC joins

11. Oracle ODBC Drivers that support CRecordset::dynaset

12. Error updating SQL-Server record via ODBC (CRecordset)


Powered by phpBB® Forum Software