资源简介
syc的vc局域网聊天室源码
代码片段和文件信息
// ChatRoom.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ChatRoom.h“
#include “ChatRoomDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CChatRoomApp
BEGIN_MESSAGE_MAP(CChatRoomApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// CChatRoomApp construction
CChatRoomApp::CChatRoomApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
// The one and only CChatRoomApp object
CChatRoomApp theApp;
// CChatRoomApp initialization
BOOL CChatRoomApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::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
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
CChatRoomDlg dlg;
m_pMainWnd = &dlg;
INT_PTR 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 45296 2012-02-12 15:06 ChatRoom\ChatRoom\ChatRoom.aps
文件 2204 2009-04-19 20:42 ChatRoom\ChatRoom\ChatRoom.cpp
文件 516 2009-04-19 20:42 ChatRoom\ChatRoom\ChatRoom.h
文件 7246 2011-11-18 23:35 ChatRoom\ChatRoom\ChatRoom.rc
文件 5746 2011-11-18 22:38 ChatRoom\ChatRoom\ChatRoom.vcproj
文件 5682 2009-04-29 00:06 ChatRoom\ChatRoom\ChatRoom.vcproj.8.00.old
文件 1427 2012-02-15 20:57 ChatRoom\ChatRoom\ChatRoom.vcproj.PC-201105061902.Administrator.user
文件 13371 2009-05-04 21:10 ChatRoom\ChatRoom\ChatRoomDlg.cpp
文件 1848 2009-05-04 21:08 ChatRoom\ChatRoom\ChatRoomDlg.h
文件 1637 2009-04-30 00:11 ChatRoom\ChatRoom\Client.cpp
文件 541 2009-05-04 20:46 ChatRoom\ChatRoom\Inc.h
文件 4163 2008-01-13 18:00 ChatRoom\ChatRoom\ReadMe.txt
文件 21630 2005-08-12 16:37 ChatRoom\ChatRoom\res\ChatRoom.ico
文件 399 2008-01-13 18:00 ChatRoom\ChatRoom\res\ChatRoom.rc2
文件 2204 2009-05-04 20:56 ChatRoom\ChatRoom\resource.h
文件 3618 2009-05-04 21:13 ChatRoom\ChatRoom\Server.cpp
文件 208 2008-01-13 18:00 ChatRoom\ChatRoom\stdafx.cpp
文件 2912 2009-04-13 22:42 ChatRoom\ChatRoom\stdafx.h
文件 16567296 2012-02-15 20:57 ChatRoom\ChatRoom.ncb
文件 890 2011-11-18 22:38 ChatRoom\ChatRoom.sln
文件 889 2008-01-13 18:00 ChatRoom\ChatRoom.sln.old
..A..H. 70144 2012-02-15 20:57 ChatRoom\ChatRoom.suo
..A..H. 60928 2009-05-04 21:18 ChatRoom\ChatRoom.suo.old
文件 2372 2011-11-18 22:38 ChatRoom\UpgradeLog.xm
文件 3348 2011-11-18 22:38 ChatRoom\_UpgradeReport_Files\UpgradeReport.css
文件 12505 2008-01-11 01:25 ChatRoom\_UpgradeReport_Files\UpgradeReport.xslt
文件 69 2011-11-18 22:38 ChatRoom\_UpgradeReport_Files\UpgradeReport_Minus.gif
文件 71 2011-11-18 22:38 ChatRoom\_UpgradeReport_Files\UpgradeReport_Plus.gif
目录 0 2012-02-16 01:05 ChatRoom\ChatRoom\Debug
目录 0 2012-02-16 01:04 ChatRoom\ChatRoom\res
............此处省略6个文件信息
评论
共有 条评论