473,669 Members | 2,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

internet explorer no longer launches from my app - please help!

before installing the latest security updates to windows xp, i was, within my app, able to launch internet explorer to allow users to access my web site. now it only works if ie is already launched. if ie isn't launched i get an error message: Problem with shortcut - Unable to open "http://www.mysite.com" . source code appears below. i'm stumped. can anyone please help? thanks!!!
sprintf(sBuf,"u rl.dll, FileProtocolHan dler http://mysite.com")
ShellExecute(NU LL, NULL, "RunDLL32.E XE", sBuf, NULL, SW_SHOWNORMAL)

the following older code has the same effect

ShellExecute(NU LL, NULL, "http://www.mysite.com" , NULL, NULL, SW_SHOWNORMAL)
Nov 17 '05 #1
3 1419
"angela wells" <an***@all7.com > wrote in message
news:85******** *************** ***********@mic rosoft.com...
before installing the latest security updates to windows xp,
i was, within my app, able to launch internet explorer to
allow users to access my web site. now it only works
if ie is already launched.


I can't say that I know what is the problem.

However, until you find a resolution you might try this

iexplore.exe -new http://www.mysite.com

at the command line. If that works, you should be able to use
CreateProcess() or ShellExecute() to effect the same thing.

Regards,
Will
Nov 17 '05 #2
Thanks Will! Your suggestion worked great! I wonder, is there an API function I can call to get the default browser, so I can substitute that value for "iexplore.e xe"? Thanks for your kind help. angela
Nov 17 '05 #3
"angela wells" <an***@all7.com > wrote in message
news:DA******** *************** ***********@mic rosoft.com...
Thanks Will!
You are welcome.
I wonder, is there an API function I can call to
get the default browser, so I can substitute that
value for "iexplore.e xe"?


An easy thing to do is to create an .HTM file (it doesn't have to contain
anything valid) and then pass its name to FindExecutable( ). You could also
look for the info about file assocaitions in the registry.

I didn't suggest that originally because I thought you specifically needed a
new instance of the browser. That's why I used the "-new" modifier on the
command line. I don't know if there is any commonality with respect to
command line parameters among the browsers. In other words, I'm not sure
that the conditions under which browsers choose to use an existing instance
of the browser or create a new one are at all common.

A decade ago, and before the browser war ended <g>, SpyGlass published a
spec implemented with Dynamic Data Exchange (DDE) protocol on Windows and
something else on Macs so that you could do the kind of thing you want in a
browser independent, and (almost) platform independent way. I know it worked
in '95 when I last used it <g>, I don't know if it is still a viable option.

Nevertheless, the knowledge base article that barely describes it still
lives here:

http://support.microsoft.com/?id=160957

Regards,
Will

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
19589
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all running instances of Internet Explorer (I mean those that the user launches himself). I know this is possible because I did it three months ago. Unfortunately, I can't find the code. I've already looked at all the Microsoft articles on automating...
3
3062
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
6
2279
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine, where my browser resides. Browser would be IE, O.S. Windows 2000 or XP, and it's for an intranet application. The goal of the little server on the localhost client side would be to trigger a scanner, with the TWAIN library. Also this server is...
11
11610
by: Wendy | last post by:
Hello, I have a program that does the following: When a user clicks on a row in a VB.NET datagrid, it will open a web page in Internet Explorer (that corresponds to that item in the selected row in the datagrid). It will automatically print that web page, and then it will close the Internet Explorer window. I have code that works perfectly when a regular web page is opened, however when a pdf web page is opened the printing never...
9
7720
by: Etayki | last post by:
Hi! I am new to VB.net and I am using the Visual Basic 2005 Express Edition I have two questions: 1. I am trying to write an application that will automate Internet Explorer and store data in a database. Am I better off learning VB.net or C#.net? Is there a free development environment for C# as well?
2
2179
by: BeyondSentience.com | last post by:
To Internet Users, We have made available six new internet based services ready to be used by the public. Please take a few minutes to review the potential of each service. Beyond Cohesion: Check out Beyond Cohesion (Powered by BeyondSentience.com) - Beyond Cohesion v1.2 is your assistant to the World Wide Web giving you control over your web surfing experience.
4
4426
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
4
1778
by: Salad | last post by:
Has IE gotten so complex you can't get the URL from IE? The code at http://www.mvps.org/access/api/api0051.htm used to work. Now it returns nothing. Is this due to having the IE/Yahoo/Google/WhateverElse toolbars? I've determined where it fails...at least for me....on the third If() statement in function Refresh. Maybe MS has changed the value of ComboBoxEx32 to some other value? Is there a way to get the URL from an IE window if...
2
3148
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error message as in alert box as " Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/viewalllocations.php . Operation aborted". It is working in Mozilla . Here i mentioned my code . I am facing this problem several...
0
8803
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8587
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2029
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1787
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.