c++语言应用------基于visual studio的聊天软件的实现之客户端


使用c++语言实现基于visual studio的聊天程序之客户端,配套服务器使用
资源截图
代码片段和文件信息
// ChatClient.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “ChatClient.h“
#include “ChatClientDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CChatClientApp

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


// CChatClientApp 构造

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


// 唯一的一个 CChatClientApp 对象

CChatClientApp theApp;


// CChatClientApp 初始化

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

CWinApp::InitInstance();

AfxEnableControlContainer();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CChatClientDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此处放置处理何时用“确定”来关闭
//  对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用“取消”来关闭
//  对话框的代码
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      45160  2015-06-16 20:40  ChatClientChatClientChatClient.aps

     文件       1720  2014-08-12 19:27  ChatClientChatClientChatClient.cpp

     文件        465  2014-06-13 11:32  ChatClientChatClientChatClient.h

     文件       5921  2015-06-14 23:18  ChatClientChatClientChatClient.rc

     文件       5629  2014-08-12 11:11  ChatClientChatClientChatClient.vcproj

     文件       1423  2014-11-04 19:38  ChatClientChatClientChatClient.vcproj.lrf-THINKx200.lrf.user

     文件       8038  2015-06-14 11:39  ChatClientChatClientChatClient.vcxproj

     文件       2087  2015-06-13 21:02  ChatClientChatClientChatClient.vcxproj.filters

     文件        143  2015-06-13 21:02  ChatClientChatClientChatClient.vcxproj.user

     文件      11497  2015-06-16 20:41  ChatClientChatClientChatClientDlg.cpp

     文件       1578  2015-06-14 23:18  ChatClientChatClientChatClientDlg.h

     文件       6092  2014-11-04 19:37  ChatClientChatClientDebugBuildLog.htm

     文件         86  2015-06-16 21:25  ChatClientChatClientDebugChatClient.lastbuildstate

     文件        509  2015-06-16 21:25  ChatClientChatClientDebugChatClient.log

     文件      29174  2015-06-16 20:41  ChatClientChatClientDebugChatClient.obj

     文件   20316160  2015-06-16 20:41  ChatClientChatClientDebugChatClient.pch

     文件      23836  2015-06-16 20:41  ChatClientChatClientDebugChatClient.res

     文件      95511  2015-06-16 20:41  ChatClientChatClientDebugChatClientDlg.obj

     文件       5530  2015-06-16 20:41  ChatClientChatClientDebugcl.command.1.tlog

     文件      29458  2015-06-16 21:25  ChatClientChatClientDebugCL.read.1.tlog

     文件       1858  2015-06-16 21:25  ChatClientChatClientDebugCL.write.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-cvtres.read.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-cvtres.write.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-mt.read.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-mt.write.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-rc.read.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink-rc.write.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink.3256-cvtres.read.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink.3256-cvtres.write.1.tlog

     文件          2  2015-06-16 20:41  ChatClientChatClientDebuglink.3256-mt.read.1.tlog

............此处省略63个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)