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

  • 大小: 2.22MB
    文件類(lèi)型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-16
  • 語(yǔ)言: C/C++
  • 標(biāo)簽: VC++??

資源簡(jiǎn)介

資料是一個(gè)網(wǎng)絡(luò)聊天室的源代碼,附有本人寫(xiě)的詳細(xì)說(shuō)明。給初學(xué)者參考。

資源截圖

代碼片段和文件信息

//?chat.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“chat.h“
#include?“chatDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CChatApp

BEGIN_MESSAGE_MAP(CChatApp?CWinApp)
//{{AFX_MSG_MAP(CChatApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CChatApp?construction

CChatApp::CChatApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChatApp?object

CChatApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CChatApp?initialization

BOOL?CChatApp::InitInstance()
{
AfxEnableControlContainer();
if(!AfxSocketInit())
{
AfxMessageBox(“加載套間字庫(kù)失敗!“);
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

CChatDlg?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í)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2015-05-03?16:18??chat\
?????目錄???????????0??2015-05-03?16:18??chat\Debug\
?????文件??????106455??2015-05-02?19:03??chat\Debug\StdAfx.obj
?????文件??????106557??2015-05-03?16:18??chat\Debug\chat.exe
?????文件??????233380??2015-05-03?16:18??chat\Debug\chat.ilk
?????文件???????13163??2015-05-03?01:41??chat\Debug\chat.obj
?????文件?????5578420??2015-05-02?19:03??chat\Debug\chat.pch
?????文件??????394240??2015-05-03?16:18??chat\Debug\chat.pdb
?????文件????????2672??2015-05-03?01:42??chat\Debug\chat.res
?????文件???????30100??2015-05-03?16:18??chat\Debug\chatDlg.obj
?????文件??????205824??2015-05-03?16:18??chat\Debug\vc60.idb
?????文件??????364544??2015-05-03?16:18??chat\Debug\vc60.pdb
?????文件????????3543??2015-05-02?17:22??chat\ReadMe.txt
?????文件?????????206??2015-05-02?17:22??chat\StdAfx.cpp
?????文件????????1076??2015-05-02?19:03??chat\StdAfx.h
?????文件???????35632??2015-05-03?01:42??chat\chat.aps
?????文件????????1260??2015-05-03?16:18??chat\chat.clw
?????文件????????2155??2015-05-03?01:41??chat\chat.cpp
?????文件????????4123??2015-05-02?17:22??chat\chat.dsp
?????文件?????????533??2015-05-03?01:05??chat\chat.dsw
?????文件????????1302??2015-05-02?17:22??chat\chat.h
?????文件???????50176??2015-05-03?16:18??chat\chat.ncb
?????文件???????50688??2015-05-03?16:18??chat\chat.opt
?????文件?????????934??2015-05-03?16:18??chat\chat.plg
?????文件????????5542??2015-05-03?01:42??chat\chat.rc
?????文件????????6305??2015-05-03?16:18??chat\chatDlg.cpp
?????文件????????1599??2015-05-03?00:41??chat\chatDlg.h
?????目錄???????????0??2015-05-03?16:18??chat\res\
?????文件????????1078??2015-05-02?17:22??chat\res\chat.ico
?????文件?????????396??2015-05-02?17:22??chat\res\chat.rc2
?????文件?????????820??2015-05-03?01:42??chat\resource.h
............此處省略1個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源