1. Add a class and select MFCODBCConsumer. A dialog box "MFCODBCConsumerWizard" is displayed.
1. Add a class and select "mfc odbc Consumer". A dialog box "mfc odbc Consumer Wizard-project name" is displayed ". 2. Click the Data Source button to bring up the "Select Data Source" dialog box ". 3. Click the new button. In the displayed dialog box, create a new data source, and select "Driver do Microsoft Access" in the list box"
1,AddClass, select the mfc odbc Consumer. A dialog box "mfc odbc Consumer Wizard-project name" is displayed ".
2. Click the Data Source button to bring up the "Select Data Source" dialog box ".
3. Click the new button. In the displayed dialog box, click "create new data source", select "Driver do Microsoft Access" in the list box, and click "Next". Select your ACCESS database from the browser file and click "Next, click Finish. The "ODBC Microsoft Access installation" dialog box is displayed ".
4. Click the select button, find your ACCESS database, and select, OK. The "Database:" on the "select" button shows the database you selected. OK.
5. Double-click the newly created dsn. The "ODBC Microsoft Access installation" dialog box is displayed. Click OK. The "Select Database Object" dialog box is displayed ".
6. Select the data table from which you want to derive CDaoRecordset, and click OK. The dialog box "MFC ODBC Consumer Wizard-project name" is displayed ". The class name, Class header file name, and class implementation file name can be modified. Click Finish.
Has the class been created in your project?
Address: http://topic.csdn.net/u/20091208/20/ca925d5c-593f-4584-b4da-7cf2f527a311.html