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
Z-NerdAsked:
Who is Participating?
 
Z-NerdAuthor Commented:
There is no create process. I am not doing the launching.

I did figure out a way to make it stop. I just was half a second after the error before closing the CWebBrowser2.

Z
0
 
Deepu AbrahamR & D Engineering ManagerCommented:
Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute?
0
 
Z-NerdAuthor Commented:
This seems a bit of a kludge, I still don't know why it was happening, but I did stop it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.