Link to home
Start Free TrialLog in
Avatar of rparikh
rparikh

asked on

WebBrowser Control using OLE Automation

Hi :

I want to control Internet Explorer from my application - run an instance, position on screen, navigate to various URL's etc - basic stuff.

Without including the webbrowser control within my application (pure C, no MFC, no ATL, not generated using any wizard) what is the best way to do this?

Here's what I came up with - do a clsidfromprogid to get internetexplorer clsid, use cocreateinstance to create an instance of it, queryinterface for Iwebbrowser2, and use that to call navigate etc.

This approach does not seem to work. Browser window comes up and gets positioned, but further calls to navigate dont seem to work.

Also, it takes a while for the browser window to come up. Looks really bad from the user point of view.

Any ideas and is there a better/faster way to do this?

Thanks,
Rima Parikh.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rparikh
rparikh

ASKER

Thanks, that's faster than my approach and it worked.