111: 我的回答是:Using Access 2000 Databases with MFC 6.0. MFC 6.0 has the ability to use Microsoft Access 2000 databases. To engage this support in your application, you must enable DAO 3.6 by: Linking with the DLL version of MFC and adding the following line to InitInstance before you make any database-related calls: AfxGetModuleState()->m_dwVersion = 0x0601 - or -Recompile the MFC static libs with _MFC_VER set to 0x0601.222: http://www.csdn.net/develop/read_article.asp?id=7751333: 在InitInstance中加入 AfxGetModuleState()->m_dwVersion = 0x0601;
AfxDaoInit(); 3、在stdafx.h 头文件中包含#include <afxdao.h>
airhawk()
不明...解释一下吧
我有代码……
建议使用ADO更好。
我的回答是:Using Access 2000 Databases with MFC 6.0.
MFC 6.0 has the ability to use Microsoft Access 2000 databases. To engage this support in your application, you must enable DAO 3.6 by: Linking with the DLL version of MFC and adding the following line to InitInstance before you make any database-related calls: AfxGetModuleState()->m_dwVersion = 0x0601
- or -Recompile the MFC static libs with _MFC_VER set to 0x0601.222:
http://www.csdn.net/develop/read_article.asp?id=7751333:
在InitInstance中加入
AfxGetModuleState()->m_dwVersion = 0x0601;