Re: IWebBrowser2: Navigate2 ignored

rixil_at_hotmail.com
Date: 12/16/04


Date: 15 Dec 2004 22:35:21 -0800

You probably would have better luck getting these types of questions
answered in one of the following groups:
comp.os.ms-windows.programmer.ole
comp.os.ms-windows.programmer.win32

At the same time, giving zero assistance is not my style...

While I haven't checked out your sample in detail, I can tell you that
Navigate2 responds better if you pass an empty variant rather than NULL
for parameters 2-5. In other words, assuming everything else is right,
you should try something like this:

CComVariant url("http://localhost/");
CComVariant empty;
m_pWebBrowser->Navigate2(&url, &empty, &empty, &empty, &empty);
Regards,

Michael Loritsch