4,012
社区成员
发帖
与我相关
我的任务
分享
_RecordsetPtr CAdoEx::Query(LPCTSTR lpQuery)
{
if(!m_bOpen) return NULL;
_RecordsetPtr pRs = NULL;
try
{
pRs = m_pConnection->Execute(_bstr_t(lpQuery), NULL, adCmdText);
} catch(_com_error e) {
.......
}
return pRs;
}