1

Topic: Ozhinie loadings of page in IE

I do small  for obtaining of the necessary data with html pages of the corporate server.

Application console with usage ATL.

Faced with  waitings of loading of page.

More truly after the first time I load page by means of IWebBrowser2:: Navigate2 - waiting transits successfully (found any method in an Internet), and here after I fill weeding login and the password and I click on button "Enter" this method of waiting does not work and it is completed right after a call.

How to be?


Here the waiting code:



READYSTATE rs = READYSTATE_UNINITIALIZED; 
HRESULT hr = S_OK; 
while (SUCCEEDED (hr) && rs! = READYSTATE_COMPLETE) { 
  Sleep (100); 
  hr = m_pWebBrowser2-> get_ReadyState (&rs); 
}