• 大小: 1.45M
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2021-01-29
  • 语言: C/C++
  • 标签: 聊天  

资源简介

C 基于socket编写的聊天室 服务端和 客户端

资源截图

代码片段和文件信息


// Client.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “Client.h“
#include “ClientDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CClientApp

BEGIN_MESSAGE_MAP(CClientApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CClientApp 构造

CClientApp::CClientApp()
{
// 支持重新启动管理器
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CClientApp 对象

CClientApp theApp;


// CClientApp 初始化

BOOL CClientApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSE

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-01-02 04:55  ChatRoom-master\
     文件         378  2015-01-02 04:55  ChatRoom-master\.gitattributes
     文件         574  2015-01-02 04:55  ChatRoom-master\.gitignore
     目录           0  2015-01-02 04:55  ChatRoom-master\Client\
     文件         957  2015-01-02 04:55  ChatRoom-master\Client\Client.sln
     文件       40448  2015-01-02 04:55  ChatRoom-master\Client\Client.v11.suo
     目录           0  2015-01-02 04:55  ChatRoom-master\Client\Client\
     文件      810088  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.aps
     文件        2354  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.cpp
     文件         411  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.h
     文件       14682  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.rc
     文件        6118  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.vcxproj
     文件        2249  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.vcxproj.filters
     文件         161  2015-01-02 04:55  ChatRoom-master\Client\Client\Client.vcxproj.user
     文件       12938  2015-01-02 04:55  ChatRoom-master\Client\Client\ClientDlg.cpp
     文件        1871  2015-01-02 04:55  ChatRoom-master\Client\Client\ClientDlg.h
     文件         274  2015-01-02 04:55  ChatRoom-master\Client\Client\ClientSocket.cpp
     文件         217  2015-01-02 04:55  ChatRoom-master\Client\Client\ClientSocket.h
     目录           0  2015-01-02 04:55  ChatRoom-master\Client\Client\res\
     文件       67777  2015-01-02 04:55  ChatRoom-master\Client\Client\res\Client.ico
     文件         668  2015-01-02 04:55  ChatRoom-master\Client\Client\res\Client.rc2
     文件      699018  2015-01-02 04:55  ChatRoom-master\Client\Client\res\bk.bmp
     文件        3066  2015-01-02 04:55  ChatRoom-master\Client\Client\resource.h
     文件         131  2015-01-02 04:55  ChatRoom-master\Client\Client\stdafx.cpp
     文件        1596  2015-01-02 04:55  ChatRoom-master\Client\Client\stdafx.h
     文件         226  2015-01-02 04:55  ChatRoom-master\Client\Client\targetver.h
     目录           0  2015-01-02 04:55  ChatRoom-master\Server\
     文件         865  2015-01-02 04:55  ChatRoom-master\Server\Server.sln
     文件       56832  2015-01-02 04:55  ChatRoom-master\Server\Server.v11.suo
     目录           0  2015-01-02 04:55  ChatRoom-master\Server\Server\
     文件         260  2015-01-02 04:55  ChatRoom-master\Server\Server\ClientSocket.cpp
............此处省略20个文件信息

评论

共有 条评论