为何m_pRecordset->Open 出现异常啊 急求大牛帮助啊
m_pRecordset.CreateInstance(__uuidof(Recordset));
_bstr_t sql="select* from Score where 考号="+m_key+"";
m_pRecordset->Open((_bstr_t)sql,
m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText
)
单步运行停在
inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
的return _hr处
[解决办法]
key