Solved

Connect to URL

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month3 days, 23 hours left to enroll

630 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