hr = pClientSite->QueryInterface(IID_IServiceProvider, reinterpret_cast<void **> (&isp)); if (FAILED(hr)) throw(""); hr = isp->QueryService(SID_STopLevelBrowser, IID_IServiceProvider, reinterpret_cast<void **>(&isp2)); if (FAILED(hr)) throw(""); hr = isp2->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2, reinterpret_cast<void **>(&m_spBrowser)); if (FAILED(hr)) throw(""); hr=this->m_spBrowser->get_Document((IDispatch**)&m_spDoc); if(FAILED(hr)) throw(""); } catch(LPCTSTR lpszErr) { if(CString(lpszErr)!="") MessageBox(lpszErr); hr=S_OK; } catch(...) { MessageBox("未知错误"); hr=S_OK; } COMRELEASE(isp); COMRELEASE(isp2); } return hr; }
|
正在阅读:如何调用ActiveX网页中的JavaScript函数如何调用ActiveX网页中的JavaScript函数
2004-02-14 09:34
出处:PConline
责任编辑:linjixiong
键盘也能翻页,试试“← →”键