Valhalla Legends Archive

Programming => General Programming => Topic started by: Tubby on August 04, 2003, 01:17 PM

Title: Download or Retriving Data from a website.
Post by: Tubby on August 04, 2003, 01:17 PM
What im trying to make is a program that will startup when windows starts up, connect to the internet(using cable modem) and get the Joke of the Day, Comic of the day etc from certain websites. I looked at Skywings code that connects to battlenet and downloads certain files. How would i go about making this program?
Title: Re:Download or Retriving Data from a website.
Post by: Skywing on August 04, 2003, 02:08 PM
Quote from: Tubby on August 04, 2003, 01:17 PM
What im trying to make is a program that will startup when windows starts up, connect to the internet(using cable modem) and get the Joke of the Day, Comic of the day etc from certain websites. I looked at Skywings code that connects to battlenet and downloads certain files. How would i go about making this program?
You'd probably want to write your program as a service (assuming you're using Windows NT/2000/XP/2003).

The Platform SDK includes a sample which shows how to do this (search for service.c, service.h).  Additionally, there's an ActiveX component called NtSvc.ocx which you could use to easily make a simple service from VB.

The WinInet functions (see MSDN) might be sufficient for your HTTP downloading needs.
Title: Re:Download or Retriving Data from a website.
Post by: Tubby on August 04, 2003, 02:18 PM
Im using windows ME. Can i still make it?
Title: Re:Download or Retriving Data from a website.
Post by: Skywing on August 04, 2003, 03:02 PM
Quote from: Tubby on August 04, 2003, 02:18 PM
Im using windows ME. Can i still make it?
Not as a service.  I'm not sure how much luck you'll have in easily writing something which will work before somebody logs on for Win9x/WinMe.
Title: Re:Download or Retriving Data from a website.
Post by: Tubby on August 04, 2003, 03:29 PM
I just need it to get what ever the joke of the day is from a website. Could it be done tho?