Solved

Calling a default browser in Delphi

Posted on 1999-01-03
4
288 Views
Last Modified: 2010-04-04
I need to call the default internet browser (for win 95/98/NT) from a delphi program...

I'm sure that there must be some windows API...I just don't know it...so if anyone wants some easy points...

Just need the line that calls the default browser (started at a specific website...say www.apage.com)

Thanks in advance
0
Comment
Question by:rafy
[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
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 120 total points
ID: 1354338
Here is how it's done...

ShellExecute(0, 'open', 'http://www.yahoo.com', nil, nil, SW_SHOWNORMAL);

That's the trick :)

-Viktor
--Ivanov
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1354339
Oh, don't forget to include ShellAPI to your uses clause like so...

uses Windows, SysUtils, ..........., ShellAPI;
0
 

Author Comment

by:rafy
ID: 1354340
Perfect...thanks
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1354341
No problem :)
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
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…

696 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