Click here to Skip to main content
Click here to Skip to main content

CFTPTransferDlg v1.0 - The FTP Protocol

By , 3 Mar 2000
 
  • Download source files - 42 Kb
  • Sample Image - FTPTransferDlg.gif

    Introduction

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


    History
    Usage
    Contacting the Author


    History

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


    Usage

    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("ftp.some-site.com");
    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
    Email: pjn@indigo..ie
    Web: http://www.naughter.com
    4th January 2000


    License

    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
    Member
    No Biography provided

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
    You must Sign In to use this message board.
    Search this forum  
        Spacing  Noise  Layout  Per page   
    QuestionLicence??memberpippo pioppo8 Dec '11 - 23:49 
    GeneralVirus FakeIE_imemberjohnTorresBarreto9 Jun '11 - 9:29 
    QuestionWould it be better if the ftp upload would have been independednt of the GUI ?memberVikrant for VC++15 Nov '06 - 11:56 
    AnswerRe: Would it be better if the ftp upload would have been independednt of the GUI ?memberpjnaughter3 May '07 - 13:26 
    Generalprotocol implementationmemberraian_blore6 Dec '05 - 19:53 
    HI...i need help!!!
     
    I have to do a project in c/c++ to implement a protocol which can be any protocol depends on us..can anyone guide me how to do that...plzzz
     
    vivek
    Generalhelp , pleasememberdynamica12316 Oct '05 - 4:07 
    GeneralRe: help , pleasememberColby50025 Jul '06 - 4:03 
    GeneralUploading imagesmemberJack_pt16 Jan '05 - 15:39 
    GeneralRe: Uploading imagesmemberTomas Jakl19 Jan '05 - 14:35 
    GeneralText is one long linememberJack_pt11 Dec '04 - 15:37 
    GeneralMissing feature: Multiple file transfermemberYoSilver1 May '04 - 8:46 
    GeneralRe: Missing feature: Multiple file transfermemberpjnaughter1 May '04 - 11:21 
    GeneralRe: Missing feature: Multiple file transfermemberpjnaughter9 May '04 - 4:36 
    GeneralRe: Missing feature: Multiple file transfermemberJack_pt27 Nov '04 - 15:16 
    GeneralRe: Missing feature: Multiple file transfermemberJack_pt15 Dec '04 - 10:33 
    GeneralSecurity Issuememberalan9320 Nov '03 - 4:10 
    GeneralRe: Security Issuememberpjnaughter20 Nov '03 - 4:55 
    GeneralRe: Security Issuememberalan9320 Nov '03 - 5:51 
    Generalneed help:FTPmembergirishnadig29 Aug '03 - 1:17 
    GeneralIt is too slow compared to ordinary downloadingmemberAnonymous11 Jun '02 - 18:53 
    GeneralRe: It is too slow compared to ordinary downloadingmemberpjnaughter22 Jan '03 - 0:26 
    GeneralIs it work on proxymemberNarendra Jain4 May '02 - 2:36 
    GeneralRe: Is it work on proxymemberpjnaughter22 Jan '03 - 0:28 
    Generalftp commandmemberPaul Pang17 Mar '02 - 20:16 
    GeneralRe: ftp commandmemberpjnaughter22 Jan '03 - 0:29 

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

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