[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Calling a default browser in Delphi

Posted on 1999-01-03
4
Medium Priority
?
291 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
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 480 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

830 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