資源簡介
C++編的簡單ftp客戶端程序,可以實現(xiàn)上傳和下載等功能,還不錯,大家分享吧!

代碼片段和文件信息
//?Ftp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Ftp.h“
#include?“FtpDlg.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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A.SHR?????????9??2007-01-11?14:04??Ftp\Desktop_.ini
?????文件??????21312??2004-04-20?16:07??Ftp\Ftp.aps
?????文件???????1435??2004-04-20?16:15??Ftp\Ftp.clw
?????文件???????2021??2004-04-06?20:12??Ftp\Ftp.cpp
?????文件???????4105??2004-04-06?20:12??Ftp\Ftp.dsp
?????文件????????531??2004-04-06?20:18??Ftp\Ftp.dsw
?????文件???????1291??2004-04-06?20:12??Ftp\Ftp.h
?????文件??????58368??2004-04-20?16:15??Ftp\Ftp.ncb
?????文件??????50688??2004-04-20?16:15??Ftp\Ftp.opt
?????文件????????913??2004-04-20?16:14??Ftp\Ftp.plg
?????文件???????5912??2004-04-07?10:10??Ftp\Ftp.rc
?????文件??????12369??2004-04-20?16:14??Ftp\FtpDlg.cpp
?????文件???????1912??2004-04-06?21:46??Ftp\FtpDlg.h
?????文件???????3522??2004-04-07?10:15??Ftp\ReadMe.txt
????..A.SHR?????????9??2007-01-11?14:04??Ftp\res\Desktop_.ini
?????文件???????1078??2004-04-06?20:12??Ftp\res\Ftp.ico
?????文件????????395??2004-04-06?20:12??Ftp\res\Ftp.rc2
?????文件???????1049??2004-04-06?20:18??Ftp\Resource.h
?????文件????????205??2004-04-06?20:12??Ftp\StdAfx.cpp
?????文件???????1054??2004-04-06?20:12??Ftp\StdAfx.h
?????目錄??????????0??2009-04-10?10:44??Ftp\res
?????目錄??????????0??2009-04-10?10:44??Ftp
-----------?---------??----------?-----??----
???????????????168178????????????????????22
- 上一篇:銀行賬戶管理系統(tǒng)c++)
- 下一篇:VC++ MFC 的計算器的詳細設計
評論
共有 條評論