Click here to Skip to main content
12,559,389 members (49,883 online)
Click here to Skip to main content
Add your own
alternative version


46 bookmarked

CFTPTransferDlg v1.0 - The FTP Protocol

, 3 Mar 2000
Rate this:
Please Sign up or sign in to vote.
A dialog implementation that performs a FTP file transfer.
  • Download source files - 42 Kb
  • Sample Image - FTPTransferDlg.gif


    CFTPTransgerDlg provides an MFC dialog which performs FTP uploads and downloads similar to the Internet Explorer download dialog as shown above.

    Contacting the Author


    v1.0 (4 January 2000)
    • Initial public release.


    To use CFTPTransferDlg in your project simply include FTPTransferDlg.cpp/.h from the test application in your application and #include "FTPTransferDlg.h" in whichever files you want to use the class in. You should also copy over all the IDS_FTPTRANSFER_.. string resources, the IDD_FTPTRANSFER dialog resource and the IDR_FTPTRANSFER_ANIMATION "avi" resource. To bring up the dialog to upload / download a specific file, just use some code like the following:

    CFTPTransferDlg dlg;
    dlg.m_sServer = _T("");
    dlg.m_sRemoteFile = _T("/somefile.ext");
    dlg.m_sLocal = _T("c:\\somfile.ext");
    dlg.m_bDownload = TRUE;
    dlg.m_bBinary = TRUE;
    if (dlg.DoModal() == IDOK)
       AfxMessageBox("File was downloaded successfully");

    You should also have a look at the CFTPDlg::OnDownload() and CFTPDlg::OnUpload() code in the sample application.

    Contacting the Author

    PJ Naughter
    4th January 2000


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    PJ Naughter
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

    QuestionLicence?? Pin
    pippo pioppo8-Dec-11 23:49
    memberpippo pioppo8-Dec-11 23:49 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web02 | 2.8.161026.1 | Last Updated 4 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2016
    Layout: fixed | fluid