Solved

Connect to URL

Posted on 1998-10-21
2
126 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

939 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

10 Experts available now in Live!

Get 1:1 Help Now