Solved

Calling a default browser in Delphi

Posted on 1999-01-03
4
287 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
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…

733 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