-
-
It throws a _com_error object.
Further, you can catch it as follows:try { // ... } catch(_com_error& e) { // ... }
-
inline void TESTHR(HRESULT x) { if FAILED(x) _com_issue_error(x); };
-
CString current = "";
-
try -
{
-
// 你的ADO代码
-
}
-
catch (_com_error & e)
-
{
-
AfxMessageBox(e.Description());
-
}
-
com库中_com_issue_errorex用_com_error异常捕获
最新推荐文章于 2023-12-11 08:15:00 发布