Solved

ShellExecute & Netscape

Posted on 1997-03-23
2
229 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
2 Comments
 
LVL 3

Accepted Solution

by:
sperling earned 50 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now