How to print this hr
value to a messagebox?
HRESULT hr = pUnkSite->QueryInterface(IID_IWebBrowser2, (void**)&m_spWebBrowser);
How to print this hr
value to a messagebox?
HRESULT hr = pUnkSite->QueryInterface(IID_IWebBrowser2, (void**)&m_spWebBrowser);
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.