• Welcome to Valhalla Legends Archive.
 

Download or Retriving Data from a website.

Started by Tubby, August 04, 2003, 01:17 PM

Previous topic - Next topic

Tubby

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?

Skywing

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.

Tubby

Im using windows ME. Can i still make it?

Skywing

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.

Tubby

I just need it to get what ever the joke of the day is from a website. Could it be done tho?