Solved

on failure, CWebBrowser2  launches Internet Explorer

Posted on 2011-02-14
3
533 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:DeepuAbrahamK
Comment Utility
Check you have a call to spawm iexplore.exe? Using CreateProcess/ShellExecute?
0
 

Accepted Solution

by:
Z-Nerd earned 0 total points
Comment Utility
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
Comment Utility
This seems a bit of a kludge, I still don't know why it was happening, but I did stop it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now