Solved

ShellExecute & Netscape

Posted on 1997-03-23
2
255 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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