Bewerken

Delen via


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

  1. In Class View, right-click the project. On the shortcut menu, click Add and then click Add Class.

  2. In the Visual C++ folder, double-click the MFC ODBC Consumer icon or select it and click Open.

    The MFC ODBC Consumer Wizard opens.

  3. Define settings as described in MFC ODBC Consumer Wizard.

  4. Click Finish to close the wizard, which will insert the newly created ODBC consumer code in your project.

See also

Adding Functionality with Code Wizards