barlyee
barlyee

Reputation: 429

How to print HRESULT value to messagebox?

How to print this hr value to a messagebox?

HRESULT hr = pUnkSite->QueryInterface(IID_IWebBrowser2, (void**)&m_spWebBrowser);

Upvotes: 1

Views: 3084

Answers (2)

user1176743
user1176743

Reputation: 15

if you need to analyze HRESULT error codes then you can use "hresult plus" utility.

Upvotes: 0

Naveen
Naveen

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

Related Questions