很简单的说,在VC++里想用异常,必须在stdafx.h 里导入异常的说明,
inline void TESTHR(HRESULT x){if FAILED(x)}_com_issue_error(x)};
这样就可以在某个。CPP里这样写了,
try
   {
    }
catch(_com_error&e)
    {
     }
在C#里就直接可以写:
  try{}
   catch{}