Adding an MFC ODBC Consumer
An MFC ODBC consumer consists of an ODBC recordset class and data bindings necessary to access a data source.
To add an MFC ODBC consumer
In Class View, right-click the project. On the shortcut menu, click Add and then click Add Class.
In the Visual C++ folder, double-click the MFC ODBC Consumer icon or select it and click Open.
The MFC ODBC Consumer Wizard opens.
Define settings as described in MFC ODBC Consumer Wizard.
Click Finish to close the wizard, which will insert the newly created ODBC consumer code in your project.