Click here to Skip to main content
6,595,444 members and growing! (18,930 online)
Email Password   helpLost your password?
General Programming » Internet / Network » General     Intermediate

CFTPTransferDlg v1.0 - The FTP Protocol

By PJ Naughter

A dialog implementation that performs a FTP file transfer.
VC6, MFC, Dev
Posted:3 Mar 2000
Views:98,970
Bookmarked:34 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
30 votes for this article.
Popularity: 6.36 Rating: 4.31 out of 5

1

2
2 votes, 33.3%
3
1 vote, 16.7%
4
3 votes, 50.0%
5
  • 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


    Member

    Location: United States United States

    Other popular Internet / Network articles:

    Article Top
    You must Sign In to use this message board.
    FAQ FAQ 
     
    Noise Tolerance  Layout  Per page   
     Msgs 1 to 25 of 32 (Total in Forum: 32) (Refresh)FirstPrevNext
    GeneralWould it be better if the ftp upload would have been independednt of the GUI ? PinmemberVikrant for VC++12:56 15 Nov '06  
    GeneralRe: Would it be better if the ftp upload would have been independednt of the GUI ? Pinmemberpjnaughter14:26 3 May '07  
    Generalprotocol implementation Pinmemberraian_blore20:53 6 Dec '05  
    Generalhelp , please Pinmemberdynamica1235:07 16 Oct '05  
    GeneralRe: help , please PinmemberColby5005:03 25 Jul '06  
    GeneralUploading images PinmemberJack_pt16:39 16 Jan '05  
    GeneralRe: Uploading images PinmemberTomas Jakl15:35 19 Jan '05  
    GeneralText is one long line PinmemberJack_pt16:37 11 Dec '04  
    GeneralMissing feature: Multiple file transfer PinmemberYoSilver9:46 1 May '04  
    GeneralRe: Missing feature: Multiple file transfer Pinmemberpjnaughter12:21 1 May '04  
    GeneralRe: Missing feature: Multiple file transfer Pinmemberpjnaughter5:36 9 May '04  
    GeneralRe: Missing feature: Multiple file transfer PinmemberJack_pt16:16 27 Nov '04  
    GeneralRe: Missing feature: Multiple file transfer PinmemberJack_pt11:33 15 Dec '04  
    GeneralSecurity Issue Pinmemberalan935:10 20 Nov '03  
    GeneralRe: Security Issue Pinmemberpjnaughter5:55 20 Nov '03  
    GeneralRe: Security Issue Pinmemberalan936:51 20 Nov '03  
    Generalneed help:FTP Pinmembergirishnadig2:17 29 Aug '03  
    GeneralIt is too slow compared to ordinary downloading PinmemberAnonymous19:53 11 Jun '02  
    GeneralRe: It is too slow compared to ordinary downloading Pinmemberpjnaughter1:26 22 Jan '03  
    GeneralIs it work on proxy PinmemberNarendra Jain3:36 4 May '02  
    GeneralRe: Is it work on proxy Pinmemberpjnaughter1:28 22 Jan '03  
    Generalftp command PinmemberPaul Pang21:16 17 Mar '02  
    GeneralRe: ftp command Pinmemberpjnaughter1:29 22 Jan '03  
    GeneralResume FTP Pinmembertomimak6:50 27 Oct '01  
    GeneralRe: Resume FTP PinmemberJörgen Sigvardsson2:50 26 Feb '02  

    General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    PermaLink | Privacy | Terms of Use
    Last Updated: 3 Mar 2000
    Editor: Valerie Bradley
    Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2009
    Web22 | Advertise on the Code Project