try { m_pRecordset->Update(); } catch(_com_error * e) { } 这么试试,如果不行,恐怕就没办法了
try { //你的ADO代码 } catch (_com_error& e) { CString strMsg; strMsg.Format(_T("错误描述:%s\n错误消息%s"), (LPCTSTR)e.Description(), (LPCTSTR)e.ErrorMessage()); AfxMessageBox(strMsg); }
4,011
社区成员
39,820
社区内容
加载中
试试用AI创作助手写篇文章吧