?
Solved

Connect to URL

Posted on 1998-10-21
2
Medium Priority
?
136 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
[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
  • 2
2 Comments
 
LVL 10

Accepted Solution

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

718 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