Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

on failure, CWebBrowser2  launches Internet Explorer

Posted on 2011-02-14
3
Medium Priority
?
543 Views
Last Modified: 2012-05-11
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
Comment
Question by:Z-Nerd
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Deepu Abraham
ID: 34922961
Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute?
0
 

Accepted Solution

by:
Z-Nerd earned 0 total points
ID: 34945379
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
 

Author Closing Comment

by:Z-Nerd
ID: 34986525
This seems a bit of a kludge, I still don't know why it was happening, but I did stop it.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question