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
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
Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This seems a bit of a kludge, I still don't know why it was happening, but I did stop it.