-
大小: 49KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-06-01
- 語言: C/C++
- 標(biāo)簽: VC++??屏幕監(jiān)控??客戶端??服務(wù)器端??
資源簡介
主要是圖片的操作及SOCKET 異步選擇模型的使用。

代碼片段和文件信息
//?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
WSADATA?wsd;
WSAStartup(MAKEWORD(22)&wsd);
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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2010-08-03?04:01??Client
?????文件??????21132??2010-08-03?03:58??Client\Client.aps
?????文件???????2110??2007-05-08?08:52??Client\Client.cpp
?????文件???????4195??2007-05-08?08:52??Client\Client.dsp
?????文件????????535??2007-05-08?08:52??Client\Client.dsw
?????文件???????1324??2007-05-08?08:52??Client\Client.h
?????文件??????41984??2010-08-03?04:01??Client\Client.ncb
?????文件??????53760??2010-08-03?04:01??Client\Client.opt
?????文件????????246??2010-08-03?03:59??Client\Client.plg
?????文件???????5454??2007-05-08?08:52??Client\Client.rc
?????文件???????6634??2007-05-08?08:52??Client\ClientDlg.cpp
?????文件???????1562??2007-05-08?08:52??Client\ClientDlg.h
?????文件???????3579??2007-05-08?08:52??Client\ReadMe.txt
?????目錄??????????0??2010-08-03?03:55??Client\res
?????文件???????1078??2007-05-08?08:52??Client\res\Client.ico
?????文件????????398??2007-05-08?08:52??Client\res\Client.rc2
?????文件????????914??2007-05-08?08:52??Client\Resource.h
?????文件????????208??2007-05-08?08:52??Client\StdAfx.cpp
?????文件???????1054??2007-05-08?08:52??Client\StdAfx.h
?????目錄??????????0??2010-08-03?04:02??Server
?????文件???????3579??2007-05-08?08:52??Server\ReadMe.txt
?????目錄??????????0??2010-08-03?03:55??Server\res
?????文件???????1078??2007-05-08?08:52??Server\res\Server.ico
?????文件????????398??2007-05-08?08:52??Server\res\Server.rc2
?????文件????????684??2007-05-08?08:52??Server\Resource.h
?????文件??????20708??2010-08-03?03:55??Server\Server.aps
?????文件???????2110??2007-05-08?08:52??Server\Server.cpp
?????文件???????4198??2007-05-08?08:52??Server\Server.dsp
?????文件????????535??2007-05-08?08:52??Server\Server.dsw
?????文件???????1324??2007-05-08?08:52??Server\Server.h
............此處省略11個文件信息
評論
共有 條評論