473,509 Members | 3,543 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,"url.dll, FileProtocolHandler http://mysite.com")
ShellExecute(NULL, NULL, "RunDLL32.EXE", sBuf, NULL, SW_SHOWNORMAL)

the following older code has the same effect

ShellExecute(NULL, NULL, "http://www.mysite.com", NULL, NULL, SW_SHOWNORMAL)
Nov 17 '05 #1
3 1413
"angela wells" <an***@all7.com> wrote in message
news:85**********************************@microsof t.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.exe"? Thanks for your kind help. angela
Nov 17 '05 #3
"angela wells" <an***@all7.com> wrote in message
news:DA**********************************@microsof t.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.exe"?


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
19559
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...
3
3051
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
2248
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,...
11
11576
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...
9
7713
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...
2
2170
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:...
4
4394
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
1768
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...
2
3131
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...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
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...
1
7073
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...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5062
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...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
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 ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
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...

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.