Link to home
Start Free TrialLog in
Avatar of Z-Nerd
Z-Nerd

asked on

on failure, CWebBrowser2 launches Internet Explorer

I have an MFC app that runs JavaScript in a CWebBrowser2 (wrapper for IWebBrowser2). While testing, if I unplug my internet connection, I get an error return from GetIDsOfNames. I handle the error and my app is happy.

But for some reason unknown to me,  Internet Explorer is launched with a URL the same as my web page that CWebBrowser2 is requesting and then times out with the error "cannot display ....".

How do I stop Internet Explorer from launching?

Z
Avatar of Deepu Abraham
Deepu Abraham
Flag of United States of America image

Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute?
ASKER CERTIFIED SOLUTION
Avatar of Z-Nerd
Z-Nerd

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 Z-Nerd
Z-Nerd

ASKER

This seems a bit of a kludge, I still don't know why it was happening, but I did stop it.