Need to look up the error string for an HRESULT code? Here’s some code to do so.
#include <comdef.h>
CString GetMsgForHresult(HRESULT hr)
{
CString cs;
CString msg = _com_error(hr).ErrorMessage();
cs.Format(_T(”Error 0x%08x: %s”), hr, msg);
return cs;
}
-
« Home
-
Your host...

-
Donate Today
Call Me
-
del.icio.us bookmarks
-
Google Reader Shared Items