Why WebBrowser control could not show the page when IE use proxy settings

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi All:<br/>   I have made a web browser activex control and used it in a html page, when IE do not set proxy server, the browser control can show the internet page, however, when set Proxy server in IE, IE can open the page, however, the browser control will display as below<br/>"This program cannot display the webpage"<br/><br/>the code snip is as below:<br/><br/>//create the control<br/>CAxWindow wnd(m_hWnd);<br/>  wnd.ModifyStyle(0, WS_HSCROLL | WS_VSCROLL);<br/>  <br/>  HRESULT hr = wnd.CreateControl(IDH_XXXX);<br/>  if (SUCCEEDED(hr))<br/>   hr = wnd.QueryControl(IID_IWebBrowser2, (void**)&m_spBrowser);<br/>  if (SUCCEEDED(hr))<br/>   hr = m_pWController->SetWebBrowser((IWebBrowser2*)m_spBrowser);<br/>   <br/>//Navigate the page:<br/>   m_spBrowser->Navigate(bstrURL, &vEmpty,&vEmpty,&vEmpty,&vEmpty);<br/><br/>Does Webbrowser control need to do some special action to use IE proxy server, I think it should be automatically import IE proxy server, we do not need do any more, am i right? <br/>Thanks for your advise.<hr class="sig Rejoice, I Desire!

View the full article
 
Back
Top