CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Read text file from Internet

    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!


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Read text file from Internet

    I've written an internet update program, the code can be downloaded from http://www.planetsourcecode.com/xq/A...s/ShowCode.htm. This can be a good start to implement it in your application.

    Tom Cannaerts
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Re: Read text file from Internet

    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!


  4. #4
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Re: Read text file from Internet

    Nevermind!!

    I figured it out.

    It works perfectly!!

    Thank you SO MUCH!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured