Click here to Skip to main content
11,409,097 members (65,565 online)
Click here to Skip to main content

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

    Comments and Discussions

    QuestionLicence?? Pinmemberpippo pioppo9-Dec-11 0:49 
    GeneralVirus FakeIE_i PinmemberjohnTorresBarreto9-Jun-11 10:29 
    QuestionWould it be better if the ftp upload would have been independednt of the GUI ? PinmemberVikrant for VC++15-Nov-06 12:56 
    AnswerRe: Would it be better if the ftp upload would have been independednt of the GUI ? Pinmemberpjnaughter3-May-07 14:26 
    Generalprotocol implementation Pinmemberraian_blore6-Dec-05 20:53 
    Generalhelp , please Pinmemberdynamica12316-Oct-05 5:07 
    GeneralRe: help , please PinmemberColby50025-Jul-06 5:03 
    GeneralUploading images PinmemberJack_pt16-Jan-05 16:39 
    GeneralRe: Uploading images PinmemberTomas Jakl19-Jan-05 15:35 
    I'm using this class to upload gif images and uploaded images are ok. Did you set m_bBinary = true?

    Tomas Jakl
    GeneralText is one long line PinmemberJack_pt11-Dec-04 16:37 
    GeneralMissing feature: Multiple file transfer PinmemberYoSilver1-May-04 9:46 
    GeneralRe: Missing feature: Multiple file transfer Pinmemberpjnaughter1-May-04 12:21 
    GeneralRe: Missing feature: Multiple file transfer Pinmemberpjnaughter9-May-04 5:36 
    GeneralRe: Missing feature: Multiple file transfer PinmemberJack_pt27-Nov-04 16:16 
    GeneralRe: Missing feature: Multiple file transfer PinmemberJack_pt15-Dec-04 11:33 
    GeneralSecurity Issue Pinmemberalan9320-Nov-03 5:10 
    GeneralRe: Security Issue Pinmemberpjnaughter20-Nov-03 5:55 
    GeneralRe: Security Issue Pinmemberalan9320-Nov-03 6:51 
    Generalneed help:FTP Pinmembergirishnadig29-Aug-03 2:17 
    GeneralIt is too slow compared to ordinary downloading PinmemberAnonymous11-Jun-02 19:53 
    GeneralRe: It is too slow compared to ordinary downloading Pinmemberpjnaughter22-Jan-03 1:26 
    GeneralIs it work on proxy PinmemberNarendra Jain4-May-02 3:36 
    GeneralRe: Is it work on proxy Pinmemberpjnaughter22-Jan-03 1:28 
    Generalftp command PinmemberPaul Pang17-Mar-02 21:16 
    GeneralRe: ftp command Pinmemberpjnaughter22-Jan-03 1:29 
    GeneralResume FTP Pinmembertomimak27-Oct-01 6:50 
    GeneralRe: Resume FTP PinmemberJörgen Sigvardsson26-Feb-02 2:50 
    GeneralRe: Resume FTP Pinmemberpjnaughter22-Jan-03 1:31 
    GeneralUI Updates Don't Work PinmemberDarren Schroeder23-Dec-00 7:46 
    GeneralRe: UI Updates Don't Work PinmemberCathy25-May-01 14:12 
    GeneralRe: UI Updates Don't Work PinmemberUBKing17-Aug-01 4:45 
    GeneralRe: UI Updates Don't Work Pinmemberpjnaughter22-Jan-03 1:33 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
    Web03 | 2.8.150414.5 | Last Updated 4 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid