-
大小: 5.45MB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2023-10-01
- 語言: 其他
- 標簽:
資源簡介
設(shè)計一個ftp客戶端可以實現(xiàn)文件的上傳和下載的功能

代碼片段和文件信息
//?MyFtp.cpp?:?Defines?the?class?behaviors?for?the?application.
//?Download?by?http://www.codefans.net
#include?“stdafx.h“
#include?“MyFtp.h“
#include?“MyFtpDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMyFtpApp
BEGIN_MESSAGE_MAP(CMyFtpApp?CWinApp)
//{{AFX_MSG_MAP(CMyFtpApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMyFtpApp?construction
CMyFtpApp::CMyFtpApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMyFtpApp?object
CMyFtpApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMyFtpApp?initialization
BOOL?CMyFtpApp::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
CMyFtpDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-06-20?15:15??ftp客戶端的設(shè)計與實現(xiàn)\
?????目錄???????????0??2012-02-20?11:01??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\
?????目錄???????????0??2011-12-30?21:08??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\
?????文件?????5293056??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.bsc
?????文件??????135237??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.exe
?????文件??????291852??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.ilk
?????文件???????30681??2011-12-29?14:58??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.obj
?????文件?????7721528??2011-12-29?14:58??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.pch
?????文件??????435200??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.pdb
?????文件???????16084??2011-12-29?13:10??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.res
?????文件???????????0??2011-12-29?14:58??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtp.sbr
?????文件???????79892??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtpDlg.obj
?????文件???????????0??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\MyFtpDlg.sbr
?????文件??????110420??2011-12-29?14:58??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\StdAfx.obj
?????文件?????1436823??2011-12-29?14:58??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\StdAfx.sbr
?????文件??????345088??2012-02-20?11:00??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\vc60.idb
?????文件??????389120??2011-12-30?11:06??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\Debug\vc60.pdb
?????文件???????50128??2002-06-27?06:15??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.aps
?????文件????????2586??2002-06-27?07:30??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.clw
?????文件????????2085??2010-04-16?21:39??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.cpp
?????文件????????4288??2011-12-29?15:39??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.dsp
?????文件?????????535??2002-06-24?00:27??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.dsw
?????文件????????1313??2002-06-24?00:27??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.h
?????文件???????91136??2012-02-20?11:01??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.ncb
?????文件???????48640??2012-02-20?11:01??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.opt
?????文件?????????244??2012-02-20?11:00??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.plg
?????文件????????7433??2002-06-27?06:15??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtp.rc
?????文件???????12197??2011-12-30?11:05??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtpDlg.cpp
?????文件????????2603??2010-04-16?21:39??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\MyFtpDlg.h
?????文件????????3561??2002-06-24?00:27??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\ReadMe.txt
?????目錄???????????0??2011-12-30?21:08??ftp客戶端的設(shè)計與實現(xiàn)\MyFtp\res\
............此處省略7個文件信息
評論
共有 條評論