超级低级问题:CDaoDatabase db;通不过?

sodangerous 2004-09-09 04:46:19
超级低级问题
我的一个对话框工程里
CDaoDatabase db;
CDaoRecordset RecSet(&db);
为什么这两行通不过?
E:\TestDllDB\TestDllDBDlg.cpp(16) : error C2146: syntax error : missing ';' before identifier 'db'
E:\TestDllDB\TestDllDBDlg.cpp(16) : error C2501: 'CDaoDatabase' : missing storage-class or type specifiers
E:\TestDllDB\TestDllDBDlg.cpp(16) : fatal error C1004: unexpected end of file found
...全文
118 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jijinxu 2004-09-09
  • 打赏
  • 举报
回复
E:\TestDllDB\TestDllDBDlg.cpp(16) : fatal error C1004: unexpected end of file found
这条错误应该另有原因,由于所给条件不足,无法判断
jijinxu 2004-09-09
  • 打赏
  • 举报
回复
#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes.
#endif // _AFX_NO_DAO_SUPPORT
jijinxu 2004-09-09
  • 打赏
  • 举报
回复
#include <afxdao.h>

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧