FTP with progress dialog
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: FTP with progress dialog

Hybrid View

  1. #1
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,770

    FTP with progress dialog

    For a project I'm working on, I need to be able to download a file from an FTP server and store it to a predetermined location with a predetermined name. No user interaction should be needed. Because the file is rather large, and I need the main program to remain responsive, this is going to need a progress dialog.

    I could write all this myself and use the MFC wininet wrappers (CInternetSession et al) to do the downloading, but... Explorer already has this, and IE has such a dialog also. It doesn't seem unreasonable to assume those dialogs are available via some API.

    Is a "FTP download with dialog" available as a windows API, or do I really need to write all this myself ?

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,055

    Re: FTP with progress dialog

    I have no idea, but it seems using CInternetFile::Read and a progress dialog would be very trivial to implement. Shouldn't take more than a few minutes.

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: FTP with progress dialog

    Here is a ftp client I 'stole' a few years ago from the internet and wrapped it in a class. The GetFile () function gives you progress that you can use for a progress window.
    FtpClient.cpp
    FtpClient.h

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center