4,018
社区成员




m_pCmd->ActiveConnection=m_pConnection;
CString strJust;
strJust.Format("SELECT * FROM DemoTable where ID='%s' ",m_strID);
m_pCmd->CommandText =(_bstr_t) strJust;
m_pRecordset = m_pCmd->Execute(NULL, NULL,adCmdText);
m_pRecordset->MoveFirst();
m_pRecordset->PutCollect(_variant_t(_T("NAME")), _variant_t(m_strName));//报错