Reputation: 429
How to print this hr
value to a messagebox?
HRESULT hr = pUnkSite->QueryInterface(IID_IWebBrowser2, (void**)&m_spWebBrowser);
Upvotes: 1
Views: 3084
Reputation: 15
if you need to analyze HRESULT error codes then you can use "hresult plus" utility.
Upvotes: 0
Reputation: 73473
You can not directly print HRESULT
value to a message box as it of type long
. You need to map the HRESULT
values to dispyable strings and show them.
Upvotes: 0