資源簡介
c++ftp上傳程序源代碼,對于學習ftp上傳類的程序可能會有用,希望能幫到大家

代碼片段和文件信息
//?xiongFtp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FtpClient.h“
#include?“MainFrm.h“
#include?“FtpClientDoc.h“
#include?“FtpClientView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFtpClientApp
BEGIN_MESSAGE_MAP(CFtpClientApp?CWinApp)
//{{AFX_MSG_MAP(CFtpClientApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CFtpClientApp?construction
CFtpClientApp::CFtpClientApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFtpClientApp?object
CFtpClientApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFtpClientApp?initialization
BOOL?CFtpClientApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CFtpClientDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CFtpClientView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
m_pMainWnd->CenterWindow(CWnd::GetDesktopWindow());
//?The?one?and?only?window?has?been?initialized?so?sh
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3354??2009-04-12?01:35??Ftp?Client\FtpClient.clw
?????文件???????4316??2001-07-17?17:20??Ftp?Client\FtpClient.cpp
?????文件???????1383??2001-07-17?17:20??Ftp?Client\FtpClient.h
?????文件?????222208??2009-04-12?10:50??Ftp?Client\FtpClient.ncb
?????文件????????252??2009-04-12?10:49??Ftp?Client\FtpClient.plg
?????文件???????4164??2001-07-17?17:20??Ftp?Client\FtpClient1.cpp
?????文件???????1236??2001-07-17?17:20??Ftp?Client\FtpClient1.h
?????文件???????1801??2001-07-17?17:20??Ftp?Client\FtpClientDoc.cpp
?????文件???????1504??2001-07-17?17:20??Ftp?Client\FtpClientDoc.h
?????文件???????2824??2001-07-17?17:20??Ftp?Client\FtpClientView.cpp
?????文件???????2027??2001-07-17?17:20??Ftp?Client\FtpClientView.h
?????文件???????1618??2001-07-17?17:20??Ftp?Client\InfoView.cpp
?????文件???????1498??2001-07-17?17:20??Ftp?Client\InfoView.h
?????文件???????6596??2001-07-17?17:20??Ftp?Client\LocalFileView.cpp
?????文件???????2285??2001-07-17?17:20??Ftp?Client\LocalFileView.h
?????文件??????61560??2001-07-17?17:20??Ftp?Client\MainFrm.cpp
?????文件??????11674??2001-07-17?17:20??Ftp?Client\MainFrm.h
?????文件???????3891??2001-07-17?17:20??Ftp?Client\MyFtpClass.cpp
?????文件???????1259??2001-07-17?17:20??Ftp?Client\MyFtpClass.h
?????文件???????1010??2001-07-17?17:20??Ftp?Client\MyThread.cpp
?????文件???????1338??2001-07-17?17:20??Ftp?Client\MyThread.h
?????文件?????????80??2001-07-17?17:20??Ftp?Client\ReadMe.txt
?????文件????????210??2001-07-17?17:20??Ftp?Client\StdAfx.cpp
?????文件???????1077??2001-07-17?17:20??Ftp?Client\StdAfx.h
?????文件?????192603??2009-04-11?22:51??Ftp?Client\Debug\FtpClient.exe
?????文件?????630752??2009-04-11?22:51??Ftp?Client\Debug\FtpClient.ilk
?????文件??????25919??2009-04-11?22:50??Ftp?Client\Debug\FtpClient.obj
?????文件????5513184??2009-04-11?22:50??Ftp?Client\Debug\FtpClient.pch
?????文件?????525312??2009-04-11?22:51??Ftp?Client\Debug\FtpClient.pdb
?????文件??????11812??2009-04-11?22:50??Ftp?Client\Debug\FtpClient.res
............此處省略32個文件信息
- 上一篇:MFC與SQL Server
- 下一篇:譚浩強c++第二章例題
評論
共有 條評論