资源简介
vc++程序 ,含客户端和服务器端,类似聊天软件,服务器一直开着,开几个客户端(客户端可不在同一台电脑上),实现聊天.内有源代码及使用说明.比较简单的基础代码,将编译的debug,release删除了,文件大小比较小,基于dialog的.

代码片段和文件信息
// MyTcpClientsly.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “MyTcpClientsly.h“
#include “MyTcpClientslyDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyTcpClientslyApp
BEGIN_MESSAGE_MAP(CMyTcpClientslyApp CWinApp)
//{{AFX_MSG_MAP(CMyTcpClientslyApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CMyTcpClientslyApp construction
CMyTcpClientslyApp::CMyTcpClientslyApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyTcpClientslyApp object
CMyTcpClientslyApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMyTcpClientslyApp initialization
BOOL CMyTcpClientslyApp::InitInstance()
{
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
WSADATA wsd;
WSAStartup(MAKEWORD(22)&wsd);
CMyTcpClientslyDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36412 2010-04-22 14:01 TCP client+server\MyTcpClient\MyTcpClientsly.aps
文件 1549 2010-04-22 14:08 TCP client+server\MyTcpClient\MyTcpClientsly.clw
文件 2228 2010-04-22 11:35 TCP client+server\MyTcpClient\MyTcpClientsly.cpp
文件 4303 2010-04-22 09:45 TCP client+server\MyTcpClient\MyTcpClientsly.dsp
文件 551 2010-04-22 09:45 TCP client+server\MyTcpClient\MyTcpClientsly.dsw
文件 1412 2010-04-22 09:45 TCP client+server\MyTcpClient\MyTcpClientsly.h
文件 58368 2010-04-22 14:08 TCP client+server\MyTcpClient\MyTcpClientsly.ncb
文件 55808 2010-04-22 14:08 TCP client+server\MyTcpClient\MyTcpClientsly.opt
文件 262 2010-04-22 14:01 TCP client+server\MyTcpClient\MyTcpClientsly.plg
文件 5882 2010-04-22 14:01 TCP client+server\MyTcpClient\MyTcpClientsly.rc
文件 6103 2010-04-22 13:38 TCP client+server\MyTcpClient\MyTcpClientslyDlg.cpp
文件 1669 2010-04-22 10:13 TCP client+server\MyTcpClient\MyTcpClientslyDlg.h
文件 3723 2010-04-22 09:45 TCP client+server\MyTcpClient\ReadMe.txt
文件 1078 2010-04-22 09:45 TCP client+server\MyTcpClient\res\MyTcpClientsly.ico
文件 406 2010-04-22 09:45 TCP client+server\MyTcpClient\res\MyTcpClientsly.rc2
文件 968 2010-04-22 09:52 TCP client+server\MyTcpClient\resource.h
文件 216 2010-04-22 09:45 TCP client+server\MyTcpClient\StdAfx.cpp
文件 1054 2010-04-22 09:45 TCP client+server\MyTcpClient\StdAfx.h
文件 36176 2010-04-22 14:00 TCP client+server\MyTcpServer\MyTcpServersly.aps
文件 1404 2010-04-22 14:03 TCP client+server\MyTcpServer\MyTcpServersly.clw
文件 2225 2010-04-22 11:34 TCP client+server\MyTcpServer\MyTcpServersly.cpp
文件 4303 2010-04-22 10:23 TCP client+server\MyTcpServer\MyTcpServersly.dsp
文件 551 2010-04-22 10:23 TCP client+server\MyTcpServer\MyTcpServersly.dsw
文件 1412 2010-04-22 10:23 TCP client+server\MyTcpServer\MyTcpServersly.h
文件 58368 2010-04-22 14:03 TCP client+server\MyTcpServer\MyTcpServersly.ncb
文件 54784 2010-04-22 14:03 TCP client+server\MyTcpServer\MyTcpServersly.opt
文件 848 2010-04-22 14:03 TCP client+server\MyTcpServer\MyTcpServersly.plg
文件 5654 2010-04-22 14:00 TCP client+server\MyTcpServer\MyTcpServersly.rc
文件 6060 2010-04-22 14:00 TCP client+server\MyTcpServer\MyTcpServerslyDlg.cpp
文件 1698 2010-04-22 13:59 TCP client+server\MyTcpServer\MyTcpServerslyDlg.h
............此处省略17个文件信息
- 上一篇:参考资料\\C++获取MP3文件信息.doc
- 下一篇:C语言试题库含答案.rar
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- Quectel_EC200xEG912YEC600NEC600S系列_TCP(I
- 基于STM32F407的W5500 tcpserver(官网例程
- 基于CS的TCP文件传输程序设计
- TCP/IP客户端和服务器端源代码,好用
- modbus tcp/ip 简单通讯
- libnet发送udp和tcp包
- socket tcp应用
- TCP/IP与串口调试
- VC++基于OpenGL模拟的一个3维空间模型
- Tcp自定义命令调试工具
- Qt TCP聊天室demo
- 基于VC++的SolidWorks二次开发SolidWorks
- TCP服务端和TCP客户端通讯
- 派克变换VC++源码(附文档)
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
评论
共有 条评论