Solved

Connect to URL

Posted on 1998-10-21
2
125 Views
Last Modified: 2010-04-06
Hello,
I need help, how would I be able to connect to a specified
URL from my program.What I needed was a way to have the
dial-up-networking dial the number then have netscape load
to the specified URL. If this is answered could someone include an explanation of how this is achieved.
Regards a Newbie using Delphi 3.0 standard edition..
0
Comment
Question by:frw
  • 2
2 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 100 total points
ID: 1343815
Simply use this.////

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

This would connect to YAHOO

Regards,
Viktor Ivanov
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1343816
Oh, by the way./// Don't foget to include ShellAPI in your uses clause...
also....here are the parameters of the function...

-0 is the Handle
-'open' is a function to OPEN a file....there is also 'print'
-'http://www.yahoo.com' is the address to open.... you can also use 'mailto:viktor@megsinet.net'   which would open the mail so you can send a mail to the person with an e-mail address   viktor@megsinet.net in this case this is my address :-) You can also open a file in Windows//   just replace the 'http://www.yahoo.com' with 'C:\windows\desktop\test.txt' or something and   there you go..
-The next two parameters you don't need so you leave 'em to be NIL or Pointer(0)which is   same
-The next parameter is SW_NORMAL which will show the window in a normal position and so   on... You can also us SW_HIDE and so on....See these commands in the Win32.hlp help file

Regards,
Viktor Ivanov
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
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…

760 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

22 Experts available now in Live!

Get 1:1 Help Now