向导可以设置么?有经验的麻烦相告
小弟在此先谢谢了!

解决方案 »

  1.   

    你是想用api吗?还是想要定义相对应的记录集类
      

  2.   

    http://www.vckbase.com/document/viewdoc/?id=431
      

  3.   

    有没有在对话框中通过ODBC读取Access
      

  4.   

    CDatabase * pDatabase = new CDatabase;
    TRY
    {
        pDatabase->OpenEx( _T("DSN=chat;UID=;PWD="), CDatabase::noOdbcDialog);
    }
    CATCH (CDBException, e)
    {
        MessageBox(e->m_strError);
        delete pDatabase;
        return;
    }END_CATCHCString sql;
    sql = "insert into .....";
    pDatabase->ExecuteSQL(sql);
      

  5.   

    按照http://www.vckbase.com/document/viewdoc/?id=431所说的做,怎么编译是出现错误:error C2146: syntax error : missing ';' before identifier 'db'
    error C2501: 'CDaoDatabase' : missing storage-class or type specifiers
    fatal error C1004: unexpected end of file found
      

  6.   

    我在stdafx.h 中加了#include <afxdao.h>啊?
      

  7.   

    http://www.vckbase.com/document/viewdoc/?id=452在这篇文章中有对话框加入数据库