_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); };
posted @ 2012-06-05 17:30  友学友  阅读(1734)  评论(0编辑  收藏  举报