try { //... } catch (_com_error Ex) { TRACE(_T("Caught Exception: LoadXML")); AfxMessageBox(_T("Load Failed")); _bstr_t bstrReason = Ex.Description(); CString strError; strError.Format(_T("%s"),W2T(bstrReason)); CString strMessage; strMessage.Format(_T("Error in %s %d"), __FILE__, __LINE__); return FALSE; }
Exception
最新推荐文章于 2023-09-21 11:35:45 发布