91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 104KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-01
  • 語言: C/C++
  • 標簽: mfc??聊天室??

資源簡介

一款用mfc做的聊天室,不是很難,適合初學者學習使用~~

資源截圖

代碼片段和文件信息

//?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1829??2010-04-08?10:44??Server\ClientSocket.cpp

?????文件???????1102??2010-04-08?10:44??Server\ClientSocket.h

?????文件????????863??2010-04-08?10:44??Server\ListenSocket.cpp

?????文件????????702??2010-04-08?10:44??Server\ListenSocket.h

?????文件????????819??2010-04-08?10:44??Server\Message.cpp

?????文件????????600??2010-04-08?10:44??Server\Message.h

?????文件???????3587??2010-04-08?10:44??Server\ReadMe.txt

?????文件???????1078??2010-04-08?10:44??Server\res\Server.ico

?????文件????????398??2010-04-08?10:44??Server\res\Server.rc2

?????文件????????959??2010-04-08?10:44??Server\resource.h

?????文件??????36032??2010-04-08?10:44??Server\Server.aps

?????文件???????1287??2010-04-08?10:44??Server\Server.clw

?????文件???????2161??2010-04-08?10:44??Server\Server.cpp

?????文件???????4558??2010-04-08?10:44??Server\Server.dsp

?????文件????????535??2010-04-08?10:44??Server\Server.dsw

?????文件???????1324??2010-04-08?10:44??Server\Server.h

?????文件??????91136??2010-04-08?10:44??Server\Server.ncb

?????文件??????55808??2010-04-08?10:44??Server\Server.opt

?????文件????????902??2010-04-08?10:44??Server\Server.plg

?????文件???????5489??2010-04-08?10:44??Server\Server.rc

?????文件???????7700??2010-04-08?10:44??Server\ServerDLG.cpp

?????文件???????1853??2010-04-08?10:44??Server\ServerDLG.h

?????文件????????208??2010-04-08?10:44??Server\StdAfx.cpp

?????文件???????1106??2010-04-08?10:44??Server\StdAfx.h

?????文件?????123904??2010-04-08?10:44??Server\ts.ncb

?????文件??????56832??2010-04-08?10:44??Server\ts.opt

?????文件??????36592??2010-04-08?10:44??Client\Client.aps

?????文件???????2146??2010-04-08?10:44??Client\Client.clw

?????文件???????2157??2010-04-08?10:44??Client\Client.cpp

?????文件???????4422??2010-04-08?10:44??Client\Client.dsp

............此處省略29個文件信息

評論

共有 條評論