这个程序怎么老报错呀
_RecordsetPtr m_pSet;
if (FAILED(m_pSet.CreateInstance(__uuidof(Recordset))))
{
AfxMessageBox("Create Instance failed!");
return;
}
_variant_t index;
try
{
m_pSet->Open("select * from basedata",m_ADOCon.GetInterfacePtr(), adOpenKeyset,adLockOptimistic, adCmdText);
}
catch (_com_error e)
{
CString errormessage;
errormessage.Format("basedata记录集创建失败!\r\n错误信息%s\r\n",e.ErrorMessage());
AfxMessageBox(errormessage);
return ;
}