Solved

on failure, CWebBrowser2  launches Internet Explorer

Posted on 2011-02-14
3
535 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
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 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…

786 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