_com_issue_error 备忘
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); };
It throws a _com_error object.
Further, you can catch it as follows:
try { // ... } catch(_com_error& e) { // ... }