Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-23, 02:04am
open_url();?
Subject: open_url();?  ·  Posted: 2003-09-24, 04:17pm
Rank: ? (401)
Member #: 4497
Hey, how do programs do it when they bring up a url in your Internet Explorer? I mean I would like to know how I can click a button that would bring up a webpage. Help?

"I DO NOT suffer from insanity... I enjoy every minute of it!"
 
  Reply to this ·  Post link ·  Top
Subject: Re: open_url();?  ·  Posted: 2003-09-25, 12:38am
Rank: ? (263)
Member #: 161
Well if your wanting to do it in a DOS program the following should work:

system("start http://free2code.net"; // you need to include the <process.h> header file.

in most cases this should load the address in your registered browser.

However I'm not sure about how to do it from a windows program, but it would probably be very simple in VB.

Smart people still exist and I've found where they've been hiding from me: http://shellcity.net/phpBB/
 
  Reply to this ·  Post link ·  Top
Subject: Re: open_url();?  ·  Posted: 2003-09-25, 09:11am
Rank: ? (4827)
Member #: 3416
it's not all that simple in vb -- you have to do an api call. i've got a vb sub that i wrote that uses a couple api calls to either open any file or url you give it, or display the 'open with' dialog. hmm . . . maybe i should submit that

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: open_url();?  ·  Posted: 2003-09-27, 06:28am
Rank: ? (401)
Member #: 4497
Well, I actualy had a script from a book that would execute programs, but couldn't get it to open URL's, so I'll give that one a try.

"I DO NOT suffer from insanity... I enjoy every minute of it!"
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs