-
HRESULT to string ??
Hi ,
Ia there a function who converts HRESULT value to a string so instread of getting the following output:
I have:
Code:
HRESULT hr;
hr = MyFunc();
if ( FAILED(hr) )
{
Log << "HRESULT=" << hr;
}
Output:
HRESULT =-2147418113
I'll get:
Desired output:
HRESULT=E_UNEXPECTED (2147418113 )
Many thanks!
-
Re: HRESULT to string ??
-
Re: HRESULT to string ??
Quote:
Originally Posted by
unnamed
Tried FormatMessage()?
Thanks man it's working !!
I didn't know that win32 and hresult error code definitions are both defined under the same file.
Do you know if there are another mesasages FormatMessage() can format except of win32 & hresult ?
Thank you