資源簡介
自己用mfc做的局域網(wǎng)聊天室。我暫時只把服務(wù)器地址設(shè)為我的192.168.1.101 我沒有改了 如果你用的話 這個地址在構(gòu)造函數(shù)里 需要改下 。只提供的局域網(wǎng)直接聊天功能 。。以后有時間會逐漸完善。。有問題 qq:809851978

代碼片段和文件信息
//?chartroom_server_1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“chartroom_server_1.h“
#include?“chartroom_server_1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChartroom_server_1App
BEGIN_MESSAGE_MAP(CChartroom_server_1App?CWinApp)
//{{AFX_MSG_MAP(CChartroom_server_1App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CChartroom_server_1App?construction
CChartroom_server_1App::CChartroom_server_1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChartroom_server_1App?object
CChartroom_server_1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChartroom_server_1App?initialization
BOOL?CChartroom_server_1App::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
CChartroom_server_1Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36636??2010-04-16?10:04??Chartroom1\chartroom_server_1\chartroom_server_1.aps
?????文件???????1524??2010-04-16?10:59??Chartroom1\chartroom_server_1\chartroom_server_1.clw
?????文件???????2325??2010-04-15?21:38??Chartroom1\chartroom_server_1\chartroom_server_1.cpp
?????文件???????4694??2010-04-16?10:46??Chartroom1\chartroom_server_1\chartroom_server_1.dsp
?????文件????????559??2010-04-15?21:38??Chartroom1\chartroom_server_1\chartroom_server_1.dsw
?????文件???????1456??2010-04-15?21:43??Chartroom1\chartroom_server_1\chartroom_server_1.h
?????文件??????58368??2010-04-16?10:59??Chartroom1\chartroom_server_1\chartroom_server_1.ncb
?????文件??????49664??2010-04-16?10:59??Chartroom1\chartroom_server_1\chartroom_server_1.opt
?????文件???????1245??2010-04-16?10:45??Chartroom1\chartroom_server_1\chartroom_server_1.plg
?????文件???????5552??2010-04-16?10:04??Chartroom1\chartroom_server_1\chartroom_server_1.rc
?????文件???????5579??2010-04-16?10:45??Chartroom1\chartroom_server_1\chartroom_server_1Dlg.cpp
?????文件???????1871??2010-04-15?23:27??Chartroom1\chartroom_server_1\chartroom_server_1Dlg.h
?????文件???????1470??2010-04-15?22:56??Chartroom1\chartroom_server_1\Client.cpp
?????文件???????1253??2010-04-15?22:29??Chartroom1\chartroom_server_1\Client.h
?????文件???????1188??2010-04-16?09:04??Chartroom1\chartroom_server_1\Clisent.cpp
?????文件???????1322??2010-04-15?22:57??Chartroom1\chartroom_server_1\Clisent.h
?????文件?????114763??2010-04-16?10:45??Chartroom1\chartroom_server_1\Debug\chartroom_server_1.exe
?????文件???????3795??2010-04-15?21:38??Chartroom1\chartroom_server_1\ReadMe.txt
?????文件???????1078??2010-04-15?21:38??Chartroom1\chartroom_server_1\res\chartroom_server_1.ico
?????文件????????410??2010-04-15?21:38??Chartroom1\chartroom_server_1\res\chartroom_server_1.rc2
?????文件????????696??2010-04-16?10:03??Chartroom1\chartroom_server_1\res\Master.manifest
????..A.SH.??????3584??2010-04-16?10:02??Chartroom1\chartroom_server_1\res\Thumbs.db
?????文件????????741??2010-04-16?10:04??Chartroom1\chartroom_server_1\resource.h
?????文件????????220??2010-04-15?21:38??Chartroom1\chartroom_server_1\StdAfx.cpp
?????文件???????1102??2010-04-15?21:38??Chartroom1\chartroom_server_1\StdAfx.h
?????文件??????37976??2010-04-16?11:55??Chartroom1\Chatroom_client1\Chatroom_client1.aps
?????文件???????1480??2010-04-16?11:55??Chartroom1\Chatroom_client1\Chatroom_client1.clw
?????文件???????2297??2010-04-15?23:39??Chartroom1\Chatroom_client1\Chatroom_client1.cpp
?????文件???????4596??2010-04-16?10:16??Chartroom1\Chatroom_client1\Chatroom_client1.dsp
?????文件????????555??2010-04-15?23:39??Chartroom1\Chatroom_client1\Chatroom_client1.dsw
............此處省略29個文件信息
- 上一篇:模擬退火遺傳算法的C++程序
- 下一篇:MFCPanel控件
評論
共有 條評論