Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 545
  • Last Modified:

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
0
Z-Nerd
Asked:
Z-Nerd
  • 2
1 Solution
 
Deepu AbrahamR & D Engineering ManagerCommented:
Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute?
0
 
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
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now