資源簡介
C++寫的一個FTP客戶端程序,實現文件(夾)下載和文件(夾)上傳
1. 登錄客戶端
2. 選擇單個文件或文件夾進行下載
3. 雙擊文件進行下載,雙擊文件夾進入下一層
4. 上傳單個文件或文件夾到當前訪問目錄
Bug:從FTP服務器獲取到的文件名中文顯示亂碼

代碼片段和文件信息
//?FelixFtp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FelixFtp.h“
#include?“FelixFtpDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFelixFtpApp
BEGIN_MESSAGE_MAP(CFelixFtpApp?CWinApp)
//{{AFX_MSG_MAP(CFelixFtpApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CFelixFtpApp?construction
CFelixFtpApp::CFelixFtpApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFelixFtpApp?object
CFelixFtpApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFelixFtpApp?initialization
BOOL?CFelixFtpApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CFelixFtpDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2011??2014-05-15?14:33??FelixFtp\FelixFtp.clw
?????文件???????2091??2014-04-24?15:20??FelixFtp\FelixFtp.cpp
?????文件???????4240??2014-05-15?00:43??FelixFtp\FelixFtp.dsp
?????文件????????541??2014-04-24?15:20??FelixFtp\FelixFtp.dsw
?????文件???????1346??2014-04-24?15:20??FelixFtp\FelixFtp.h
?????文件????????250??2014-05-15?14:32??FelixFtp\FelixFtp.plg
?????文件???????6797??2014-05-15?11:34??FelixFtp\FelixFtp.rc
?????文件??????18281??2014-05-15?14:32??FelixFtp\FelixFtpDlg.cpp
?????文件???????2551??2014-05-15?13:35??FelixFtp\FelixFtpDlg.h
?????文件???????3615??2014-04-24?15:20??FelixFtp\ReadMe.txt
?????文件???????1078??2014-04-24?15:20??FelixFtp\res\FelixFtp.ico
?????文件????????400??2014-04-24?15:20??FelixFtp\res\FelixFtp.rc2
?????文件???????1468??2014-05-15?11:34??FelixFtp\resource.h
?????文件????????210??2014-04-24?15:20??FelixFtp\StdAfx.cpp
?????文件???????1054??2014-04-24?15:20??FelixFtp\StdAfx.h
?????目錄??????????0??2014-05-14?09:13??FelixFtp\res
?????目錄??????????0??2014-05-15?14:37??FelixFtp
-----------?---------??----------?-----??----
????????????????45933????????????????????17
- 上一篇:C++學生成績管理系統
- 下一篇:C#神思二代身份證讀卡程序 demo
評論
共有 條評論