资源简介
一个在VC 的MFC环境下实现的socket通信的程序,可以实现客户端和服务器端的互相通信,一个比较完善的程序!

代码片段和文件信息
// PublicNetSoft.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “PublicNetSoft.h“
#include “PublicNetSoftDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPublicNetSoftApp
BEGIN_MESSAGE_MAP(CPublicNetSoftApp CWinApp)
//{{AFX_MSG_MAP(CPublicNetSoftApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CPublicNetSoftApp construction
CPublicNetSoftApp::CPublicNetSoftApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CPublicNetSoftApp object
CPublicNetSoftApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CPublicNetSoftApp initialization
BOOL CPublicNetSoftApp::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
CPublicNetSoftDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1644 2003-02-11 03:08 SOCK改进版\ClientTest\ClientTest.clw
文件 2213 2003-01-16 03:21 SOCK改进版\ClientTest\ClientTest.cpp
文件 4272 2003-02-11 03:11 SOCK改进版\ClientTest\ClientTest.dsp
文件 543 2003-01-16 03:21 SOCK改进版\ClientTest\ClientTest.dsw
文件 1368 2003-01-16 03:21 SOCK改进版\ClientTest\ClientTest.h
文件 6153 2003-02-11 03:08 SOCK改进版\ClientTest\ClientTest.rc
文件 7126 2003-02-11 03:07 SOCK改进版\ClientTest\ClientTestDlg.cpp
文件 1670 2003-01-17 04:23 SOCK改进版\ClientTest\ClientTestDlg.h
文件 1154 2003-01-17 04:29 SOCK改进版\ClientTest\GetIP.cpp
文件 1203 2003-01-17 04:29 SOCK改进版\ClientTest\GetIP.h
文件 916 2003-01-17 04:22 SOCK改进版\ClientTest\Resource.h
文件 212 2003-01-16 03:21 SOCK改进版\ClientTest\StdAfx.cpp
文件 1210 2003-01-17 03:55 SOCK改进版\ClientTest\StdAfx.h
文件 7912 2003-01-17 04:15 SOCK改进版\ClientTest\代码说明.txt
文件 1078 2003-01-16 03:21 SOCK改进版\ClientTest\RES\ClientTest.ico
文件 402 2003-01-16 03:21 SOCK改进版\ClientTest\RES\ClientTest.rc2
文件 1078 2003-01-14 03:03 SOCK改进版\RES\PublicNetSoft.ico
文件 405 2003-01-14 03:03 SOCK改进版\RES\PublicNetSoft.rc2
文件 24576 2003-02-11 03:11 SOCK改进版\ClientTest.exe
文件 36056 2008-05-22 14:09 SOCK改进版\PublicNetSoft.aps
文件 2255 2003-01-14 03:03 SOCK改进版\PublicNetSoft.cpp
文件 4230 2003-02-11 03:11 SOCK改进版\PublicNetSoft.dsp
文件 549 2003-01-14 03:03 SOCK改进版\PublicNetSoft.dsw
文件 24576 2003-02-11 03:11 SOCK改进版\PublicNetSoft.exe
文件 1401 2003-01-14 03:03 SOCK改进版\PublicNetSoft.h
文件 41984 2008-05-22 14:12 SOCK改进版\PublicNetSoft.ncb
文件 1862 2008-05-22 14:09 SOCK改进版\PublicNetSoft.plg
文件 5608 2008-05-22 14:09 SOCK改进版\PublicNetSoft.rc
文件 1342 2008-05-22 14:09 SOCK改进版\PublicNetSoft.clw
文件 53760 2008-05-22 14:12 SOCK改进版\PublicNetSoft.opt
............此处省略12个文件信息
相关资源
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- 简单的C语言点对点聊天程序
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- 文件传输和聊天程序(c语言实现)
- VC++实现CMD命令执行与获得返回信息
- VC助手 VC6.0助手
- socket客户端.c
- socket服务端.c
- socket tcp应用
- VC++基于OpenGL模拟的一个3维空间模型
- Qt TCP聊天室demo
- 基于VC++的SolidWorks二次开发SolidWorks
- VC6 USB开发源码
- VC操作SQLSERVER数据库
- aes加解密(vc源程序)
- vc_串口通讯
- 吕鑫vc6c++数据结构视频源码
- 派克变换VC++源码(附文档)
- 基于opencv漫水填充算法综合
- VC++ 串口
- socket通讯c++源码(客户端+服务端)
- VC++ 大富翁4_大富翁游戏源码
- MFC的异步网络通讯应用程序
- VC++ 摄像头视频采集与回放源程序
评论
共有 条评论