資源簡(jiǎn)介
用socket實(shí)現(xiàn)C/S架構(gòu)的小程序,包括TCP服務(wù)和UDP服務(wù),TCP服務(wù)是計(jì)算數(shù)學(xué)表達(dá)式,UDP服務(wù)是返回反序字符串.內(nèi)有說明文檔

代碼片段和文件信息
//?Client.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Client.h“
#include?“ClientDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClientApp
BEGIN_MESSAGE_MAP(CClientApp?CWinApp)
//{{AFX_MSG_MAP(CClientApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?construction
CClientApp::CClientApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClientApp?object
CClientApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?initialization
BOOL?CClientApp::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
AfxInitRichEdit();
CClientDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????36624??2009-11-30?17:32??Client\Client.aps
?????文件???????2062??2009-12-03?21:49??Client\Client.clw
?????文件???????2084??2009-11-27?16:29??Client\Client.cpp
?????文件???????4159??2009-11-27?16:24??Client\Client.dsp
?????文件????????535??2009-11-27?16:29??Client\Client.dsw
?????文件???????1324??2009-11-27?16:24??Client\Client.h
?????文件??????58368??2009-12-03?21:49??Client\Client.ncb
?????文件??????53760??2009-12-03?21:49??Client\Client.opt
?????文件????????918??2009-12-03?21:44??Client\Client.plg
?????文件???????6841??2009-11-30?17:32??Client\Client.rc
?????文件??????10549??2009-12-03?21:43??Client\ClientDlg.cpp
?????文件???????1802??2009-12-02?20:38??Client\ClientDlg.h
?????文件?????114731??2009-12-03?21:44??Client\Debug\Client.exe
?????文件?????241576??2009-12-03?21:44??Client\Debug\Client.ilk
?????文件??????15589??2009-12-02?22:13??Client\Debug\Client.obj
?????文件????5637936??2009-12-02?22:13??Client\Debug\Client.pch
?????文件?????386048??2009-12-03?21:44??Client\Debug\Client.pdb
?????文件???????3388??2009-12-02?22:13??Client\Debug\Client.res
?????文件??????51146??2009-12-03?21:44??Client\Debug\ClientDlg.obj
?????文件?????110733??2009-12-02?22:13??Client\Debug\StdAfx.obj
?????文件?????214016??2009-12-03?21:48??Client\Debug\vc60.idb
?????文件?????372736??2009-12-03?21:44??Client\Debug\vc60.pdb
?????文件???????3579??2009-11-27?16:24??Client\ReadMe.txt
?????文件???????1078??2009-11-27?16:24??Client\res\Client.ico
?????文件????????398??2009-11-27?16:24??Client\res\Client.rc2
?????文件???????1236??2009-11-30?16:53??Client\resource.h
?????文件????????204??2009-11-30?10:59??Client\StdAfx.cpp
?????文件???????1316??2009-12-01?11:15??Client\StdAfx.h
?????文件?????122923??2009-12-03?21:47??Server\Debug\Server.exe
?????文件?????242388??2009-12-03?21:47??Server\Debug\Server.ilk
............此處省略36個(gè)文件信息
- 上一篇:walksatC語言
- 下一篇:gmfc 泡沫切割軟件漢化
評(píng)論
共有 條評(píng)論