-
大小: 7.47MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-26
- 語言: 其他
- 標(biāo)簽: TCP??socket??遠(yuǎn)程抄表??
資源簡介
TCP socket 遠(yuǎn)程抄表,屬于學(xué)術(shù)作品,可以供參考

代碼片段和文件信息
//?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()
{
if?(!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return?FALSE;
}
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
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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36932??2010-12-25?16:03??Net\Client\Client.aps
?????文件???????2140??2010-12-26?11:37??Net\Client\Client.clw
?????文件???????2157??2010-12-24?17:03??Net\Client\Client.cpp
?????文件???????4558??2010-12-25?01:52??Net\Client\Client.dsp
?????文件????????520??2010-12-24?17:03??Net\Client\Client.dsw
?????文件???????1324??2010-12-24?17:03??Net\Client\Client.h
?????文件??????74752??2010-12-26?11:50??Net\Client\Client.ncb
?????文件??????56832??2010-12-26?11:50??Net\Client\Client.opt
?????文件???????1018??2010-12-25?23:30??Net\Client\Client.plg
?????文件???????6951??2010-12-25?16:03??Net\Client\Client.rc
?????文件??????13419??2010-12-25?23:30??Net\Client\ClientDlg.cpp
?????文件???????2248??2010-12-25?16:37??Net\Client\ClientDlg.h
?????文件???????1873??2010-12-24?18:08??Net\Client\ClientSocket.cpp
?????文件???????1483??2010-12-24?18:00??Net\Client\ClientSocket.h
?????文件????3728384??2010-12-25?23:30??Net\Client\Debug\Client.bsc
?????文件?????131140??2010-12-25?23:30??Net\Client\Debug\Client.exe
?????文件?????407884??2010-12-25?23:30??Net\Client\Debug\Client.ilk
?????文件??????15909??2010-12-25?16:38??Net\Client\Debug\Client.obj
?????文件????7083212??2010-12-24?23:43??Net\Client\Debug\Client.pch
?????文件?????476160??2010-12-25?23:30??Net\Client\Debug\Client.pdb
?????文件???????3496??2010-12-25?16:08??Net\Client\Debug\Client.res
?????文件??????????0??2010-12-25?16:38??Net\Client\Debug\Client.sbr
?????文件??????75873??2010-12-25?23:30??Net\Client\Debug\ClientDlg.obj
?????文件??????????0??2010-12-25?23:30??Net\Client\Debug\ClientDlg.sbr
?????文件??????15808??2010-12-25?16:38??Net\Client\Debug\ClientSocket.obj
?????文件??????????0??2010-12-25?16:38??Net\Client\Debug\ClientSocket.sbr
?????文件???????7002??2010-12-25?16:38??Net\Client\Debug\ListenSocket.obj
?????文件??????????0??2010-12-25?16:38??Net\Client\Debug\ListenSocket.sbr
?????文件??????13956??2010-12-24?23:43??Net\Client\Debug\Message.obj
?????文件??????????0??2010-12-24?23:43??Net\Client\Debug\Message.sbr
............此處省略73個文件信息
評論
共有 條評論