?
Solved

ShellExecute & Netscape

Posted on 1997-03-23
2
Medium Priority
?
258 Views
Last Modified: 2010-05-18
In my application I am attempting to use ShellExecute to launch a file e.g. "http://www.mysite.com/home.htm" (can be local or url).  Windows launches the browser associated with the htm file.  

This process works great with IE, however Netscape will load and give an error message saying it cannot find the file or a component is missing.  

Can I take an alternative approach to loading the file?
Note: I am currently developing for 32bit and will want to migrate this to 16bit.

Thanks
0
Comment
Question by:forde
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
sperling earned 100 total points
ID: 1334832
Look up the extension in registry.

HKEY_CLASSES_ROOT\.htm
  (Default) = "NetscapeMarkup"  (or any other string if using another browser as default)

Look up HKEY_CLASSES_ROOT\NetscapeMarkup\shell\open\command
Execute the actual string, replacing %1 with the url.

This is how a double-click on a .HTM file would execute, and how ShellExecute preferrably should work.

If this don't work, netscape needs a reinstall to fix up registry entries.



Regards,

Erik.
0
 

Expert Comment

by:slash
ID: 1334833
OK,
Or :

Execute browser with API and then use DDE to send him LoadURL
command !!!
I could even give you some code

See ya
Slash
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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