Solved

ShellExecute & Netscape

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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