11.1. CRecordSet

Microsoft Visual C++/Microsoft Foundation Classes


11.1. CRecordset

11.1.1. When I add a CRecordset class, I get tons of linker errors..

If you haven't told the AppWizard to use Database Support when you created your project, the AppWizard doesn't include the database headers. If you add "#include " in your stdafx.h, CRecordset will be "legalized". Then open the Linker Options window and add the library: "odbc". This avoids tons of linker errors.

[email protected] (Wolfgang Bessler) 06/05/95, comp.lang.c++

11.1.2. I need a CRecordset::Find(), what should I do?

Use the WHERE clause in SQL.

[email protected] - mfc-l, 10/10/95