資源簡介
基于UDP協議的文件傳輸軟件,用MFC編寫了簡單界面,內有注釋易理解,實現了消息互傳和小文件傳輸

代碼片段和文件信息
//?555.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“555.h“
#include?“555Dlg.h“
#pragma?comment(lib?“Ws2_32.lib“)?
?#include??
?#include??
?#include??
?#include??
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy555App
BEGIN_MESSAGE_MAP(CMy555App?CWinApp)
//{{AFX_MSG_MAP(CMy555App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy555App?construction
CMy555App::CMy555App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy555App?object
CMy555App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy555App?initialization
BOOL?CMy555App::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
CMy555Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2816??2016-07-24?13:02??QQTEMP2\1.jpg
?????文件??????????0??2016-07-22?11:50??QQTEMP2\1.txt
?????文件??????25505??2016-07-24?16:20??QQTEMP2\111.doc
?????文件???????1236??2016-07-23?19:01??QQTEMP2\123.txt
?????文件???????2816??2016-07-24?16:09??QQTEMP2\15.jpg
?????文件????????673??2016-07-23?11:42??QQTEMP2\2.txt
?????文件??????39278??2016-07-23?12:26??QQTEMP2\3.doc
?????文件??????39070??2016-07-23?12:22??QQTEMP2\3.pdf
?????文件???????4911??2016-07-23?12:23??QQTEMP2\3.png
?????文件??????39514??2016-07-23?12:35??QQTEMP2\3.txt
?????文件??????21008??2016-07-24?12:57??QQTEMP2\555.aps
?????文件???????1352??2016-07-24?16:40??QQTEMP2\555.clw
?????文件???????2176??2016-07-21?14:52??QQTEMP2\555.cpp
?????文件???????4105??2016-07-21?14:23??QQTEMP2\555.dsp
?????文件????????512??2016-07-21?14:23??QQTEMP2\555.dsw
?????文件???????1299??2016-07-22?13:06??QQTEMP2\555.h
?????文件?????107520??2016-07-24?16:41??QQTEMP2\555.ncb
?????文件?????139776??2016-07-24?16:41??QQTEMP2\555.opt
?????文件????????908??2016-07-24?16:00??QQTEMP2\555.plg
?????文件???????5672??2016-07-23?18:33??QQTEMP2\555.rc
?????文件??????11147??2016-07-24?16:40??QQTEMP2\555Dlg.cpp
?????文件???????1406??2016-07-22?15:10??QQTEMP2\555Dlg.h
?????文件???????5300??2016-07-23?18:32??QQTEMP2\Debug\1.jpg
?????文件?????114748??2016-07-24?16:00??QQTEMP2\Debug\555.exe
?????文件?????241268??2016-07-24?16:00??QQTEMP2\Debug\555.ilk
?????文件??????15138??2016-07-21?14:52??QQTEMP2\Debug\555.obj
?????文件????5503668??2016-07-21?14:25??QQTEMP2\Debug\555.pch
?????文件?????386048??2016-07-24?16:00??QQTEMP2\Debug\555.pdb
?????文件???????2756??2016-07-23?18:33??QQTEMP2\Debug\555.res
?????文件??????46281??2016-07-24?16:00??QQTEMP2\Debug\555Dlg.obj
............此處省略19個文件信息
評論
共有 條評論