Click to See Complete Forum and Search --> : Read text file from Internet


rockies1
July 19th, 2001, 09:20 AM
I have an application that I update frequently...

I would like to have the application open a .txt file from my web site, read it's contents to determine the latest version, and if necessary, inform the user that an update exists.

Problem is, I haven't the slightest idea how to begin.

Anyone have any good pointers?

I would presume it's a WinSock or INet control thing, but I'm not familiar with them, so have no idea how to use them...

Thanks!

Cakkie
July 19th, 2001, 09:43 AM
I've written an internet update program, the code can be downloaded from http://www.planetsourcecode.com/xq/ASP/txtCodeId.22340/lngWId.1/qx/vb/scripts/ShowCode.htm. This can be a good start to implement it in your application.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

rockies1
July 19th, 2001, 03:17 PM
I'm looking at it, but I get an error when trying to run it on this line:

RV = GetFile(UpdateFile, App.Path & "\versions.dat")



The error reads:
Compile Error: ByRef argument type mismatch

UpdateFile doesn't appear anywhere else in the code...

What am I missing?

Thanks!

rockies1
July 19th, 2001, 03:32 PM
Nevermind!!

I figured it out.

It works perfectly!!

Thank you SO MUCH!