Solved

Find the default web browser

Posted on 1997-08-27
2
179 Views
Last Modified: 2010-04-06
How do I open the default web browser, with a given URL, at run-time on the users machine.
0
Comment
Question by:essbb
2 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 50 total points
ID: 1342628
Hi essbb,

I answered a question like this earlier.

Just add ShellAPI to your uses clause and try this:

VAR
   Cmd: String;

Cmd := 'http://www.microsoft.com/';
ShellExecute( 0,  'open', PChar(Cmd), nil, nil, SW_SHOWNORMAL );

This should fire up the default browser with the URL already set.

Cheers,
Ian C.
0
 

Author Comment

by:essbb
ID: 1342629
Thanks,
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Delphi: how to implement a User Shortcut mapper? 1 119
Dev express lookupcombo 3 35
Delphi: making a BW image transparent 10 61
DBCtrlGrid, Delphi, Scroll 8 38
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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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