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文件?