tags:

views:

58

answers:

1

How to print this hr value to a messagebox?

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

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.

Naveen