Solved

Calling a default browser in Delphi

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now