CCommand里面的参数好复杂,有谁用过吗?
hhf0 2001-11-08 08:50:54 我使用CCommand想执行使用OleDB连接的某些数据库操作语句,可是在初始化一个实例的时候,总是出现参数不对的情况,后来我干脆用以下方法实例化变量:
CCommand<> command;
结果出现如下错误:
c:\program files\microsoft visual studio\vc98\atl\include\atldbcli.h(2819) : error C2664: 'SetAccessor' : cannot convert parameter 1 from 'class ATL::CAccessorRowset<class ATL::CNoAccessor,class ATL::CRowset> *const ' to 'class ATL::CAccessorBase *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
WHY???????