首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

ADO有关问题,求解决.[急]

2012-08-03 
ADO问题,求解决.[急]_ConnectionPtr m_pConn//定义一个连接对象_RecordsetPtr m_pRst//定义一个数据集1

ADO问题,求解决.[急]
_ConnectionPtr m_pConn;//定义一个连接对象
_RecordsetPtr m_pRst;//定义一个数据集

1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(53): error C2146: 语法错误: 缺少“;”(在标识符“m_pConn”的前面)
1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(53): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(53): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(54): error C2146: 语法错误: 缺少“;”(在标识符“m_pRst”的前面)
1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(54): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\users\administrator\desktop\maindlg - 干净\dataconn.h(54): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int

为什么会出现这种情况..没了解...msado15.dll也连上了应该不存在这种问题了吧

[解决办法]
有没有正确import tlb文件?

热点排行
Bad Request.