pUserSet->Open("select * from score",theApp.m_pConnection.GetInterFacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);
请问是什么原因啊,而且查了另外一本书也是这样用的啊
错误说:
error C2228: left of '.m_pConnection' must have class/struct/union type
error C2228: left of '.GetInterfacePtr' must have class/struct/union type
error C2664: 'Open' : cannot convert parameter 1 from 'class CString' to 'const class _variant_t &'
Reason: cannot convert from 'class CString' to 'const class _variant_t'
No constructor could take the source type, or constructor overload resolution was ambiguous