資源簡介
MFC實現(xiàn)的利用ftp上傳和下載文件的完整程序代碼,包括客戶端和服務(wù)器端,希望能夠給需要的人以參考!

代碼片段和文件信息
//?MyFtp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MyFtp.h“
#include?“MyFtpDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFTPApp
BEGIN_MESSAGE_MAP(CFTPApp?CWinApp)
//{{AFX_MSG_MAP(CFTPApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CFTPApp?construction
CFTPApp::CFTPApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFTPApp?object
CFTPApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFTPApp?initialization
BOOL?CFTPApp::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
CFTPDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????135237??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.exe
?????文件?????275584??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.ilk
?????文件??????30978??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.obj
?????文件????7722392??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.pch
?????文件?????320512??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.pdb
?????文件??????15488??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.res
?????文件???????8679??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtp.sbr
?????文件??????83202??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtpDlg.obj
?????文件??????16127??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\MyFtpDlg.sbr
?????文件?????110584??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\StdAfx.obj
?????文件????1435312??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\StdAfx.sbr
?????文件?????214016??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\vc60.idb
?????文件?????389120??2014-05-13?20:00??ftp_MFC\FTPCLIENT\Debug\vc60.pdb
?????文件??????34932??2014-05-13?20:09??ftp_MFC\FTPCLIENT\MyFtp.aps
?????文件???????1937??2014-05-13?20:13??ftp_MFC\FTPCLIENT\MyFtp.clw
?????文件???????2027??2011-01-12?22:34??ftp_MFC\FTPCLIENT\MyFtp.cpp
?????文件???????4288??2011-01-12?23:21??ftp_MFC\FTPCLIENT\MyFtp.dsp
?????文件????????535??2011-01-15?15:50??ftp_MFC\FTPCLIENT\MyFtp.dsw
?????文件???????1303??2011-01-12?22:17??ftp_MFC\FTPCLIENT\MyFtp.h
?????文件??????50176??2014-05-13?20:27??ftp_MFC\FTPCLIENT\MyFtp.ncb
?????文件??????71680??2014-05-13?20:27??ftp_MFC\FTPCLIENT\MyFtp.opt
?????文件???????1832??2014-05-13?20:01??ftp_MFC\FTPCLIENT\MyFtp.plg
?????文件???????6301??2012-05-06?22:16??ftp_MFC\FTPCLIENT\MyFtp.rc
?????文件????????875??2012-05-06?22:25??ftp_MFC\FTPCLIENT\MyFtp.sln
????..A..H.?????30720??2012-05-06?22:25??ftp_MFC\FTPCLIENT\MyFtp.suo
?????文件???????7522??2012-05-06?15:42??ftp_MFC\FTPCLIENT\MyFtp.vcproj
?????文件???????1413??2012-05-06?22:25??ftp_MFC\FTPCLIENT\MyFtp.vcproj.zzqpc-PC.zzqpc.user
?????文件??????14233??2012-05-06?19:13??ftp_MFC\FTPCLIENT\MyFtpDlg.cpp
?????文件???????2437??2011-01-13?01:37??ftp_MFC\FTPCLIENT\MyFtpDlg.h
?????文件???????3561??2004-07-08?00:00??ftp_MFC\FTPCLIENT\ReadMe.txt
............此處省略165個文件信息
評論
共有 條評論