CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2000
    Belgium (Europe)

    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

    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
    Holland (land of the dope)

    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.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.