BOOL CMyApp::InitInstance()
{
AfxGetModuleState()->m_dwVersion =0x0601;
....

解决方案 »

  1.   

    http://www.csdn.net/expert/topic/710/710173.xml?temp=.8293421
      

  2.   

    1、MFC要支持DAO的操作,要下载sp5,下载地址为:http://msdn.microsoft.com/vstudio/downloads/updates.asp2、初始化OLE/COM库环境,在C***App的Initinstance()中添加    AfxGetModuleState()->m_dwVersion = 0x0601; 
        AfxDaoInit(); 3、在stdafx.h 头文件中包含#include <afxdao.h>
      

  3.   

    TO:
    airhawk() 
    不明...解释一下吧
      

  4.   

    用ado吧?
    我有代码……
      

  5.   

    用CDatabase+CRecordset+SQL语句吧,得到的锻炼更有普遍意义啊。
      

  6.   

    为此建立一个ODBC数据源就应该可以不必转换到97了。
    建议使用ADO更好。
      

  7.   

    http://www.csdn.net/expert/topic/447/447997.xml?temp=.5951807http://www.csdn.net/expert/topic/180/180775.xml?temp=.6863672
      

  8.   

    http://www.csdn.net/expert/topic/377/377999.xml?temp=.7071192http://www.csdn.net/expert/topic/390/390708.xml?temp=8.102053E-02
      

  9.   

    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;