IWebBrowser2-> get_Document返回S_FALSE

时间:2013-11-11 20:06:32

标签: c++ internet-explorer com windows-8.1

IWebBrowser2* browser;
CComPtr<IDispatch> disp;
HRESULT hr = browser->get_Document(&disp);

在上面的代码中,调用get_Document之后的hr值是S_FALSE,但是当我尝试使用GetLastError查看错误信息时,它表示错误号= 0。

此代码在Windows 7上运行正常但在Windows 8.1中出现问题

有什么建议吗?

0 个答案:

没有答案
相关问题