Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute should call Netscape, but isn't
Message
From
18/07/2000 12:14:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
ShellExecute should call Netscape, but isn't
Miscellaneous
Thread ID:
00393880
Message ID:
00393880
Views:
47
I have a form in my program that allows the user to enter a URL, click a button, and have the site come up in their default Internet browser. On one computer, their default browser in Netscape Communicator 4.7 (downloaded and installed last Thursday).
The button is based on the _hyperlinkcommandbutton class from the _hyperlink class library found in VFP, and it is their code that is running. The registry entry HEKY_CLASSES_ROOT\http\shell\open\ddeexec\Application is checked to see what my default browser is (in this case "nsshell"). If it is not "iexplore" (which is Internet Explorer), it calls the ShellExecute API function, passing it the URL.

When I run this program from code in VFP, everything works fine. The registry is checked, the API function is called, and the site comes up in Netscape. However, when I build this form to an executable and try it, it brings up Internet Explorer instead.

Has anyone else experienced problems with the _hyperlink classes when the default browser is Netscape? The fact that it works fine when I run from code, but not from the executable, makes me wonder if there is something else that I need to include in my project. The code itself is pretty straightforward. All we are doing is calling the class-level Click method, passing it the URL. The Microsoft-written class code take are of the rest, and we haven't modified it one whit.

Bill

PS - To be honest, I don't know if this problem is just limited to Netscape, but I doubt that any of my clients are using Opera or another third-party browser. Netscape is my immediate concern.
Next
Reply
Map
View

Click here to load this message in the networking platform