资源简介
CSocket类的使用,实现TCP/UDP在局域网内通信
这是同步(阻塞)模式

代码片段和文件信息
// MyQQ.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “MyQQ.h“
#include “MyQQDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyQQApp
BEGIN_MESSAGE_MAP(CMyQQApp CWinApp)
//{{AFX_MSG_MAP(CMyQQApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CMyQQApp construction
CMyQQApp::CMyQQApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyQQApp object
CMyQQApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMyQQApp initialization
BOOL CMyQQApp::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
CMyQQDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-07-14 12:29 MyQQ\
文件 39792 2011-07-13 17:35 MyQQ\MyQQ.aps
文件 2153 2003-04-15 11:14 MyQQ\MyQQ.clw
文件 2129 2003-04-05 09:22 MyQQ\MyQQ.cpp
文件 4120 2003-04-09 18:54 MyQQ\MyQQ.dsp
文件 533 2003-04-05 09:22 MyQQ\MyQQ.dsw
文件 1302 2003-04-05 09:22 MyQQ\MyQQ.h
文件 49664 2003-04-15 11:18 MyQQ\MyQQ.opt
文件 1647 2003-04-15 11:13 MyQQ\MyQQ.plg
文件 6658 2011-07-13 17:35 MyQQ\MyQQ.rc
文件 872 2011-07-13 16:47 MyQQ\MyQQ.sln
文件 21504 2011-07-14 12:28 MyQQ\MyQQ.suo
文件 7256 2011-07-14 11:11 MyQQ\MyQQ.vcproj
文件 30645 2011-07-14 10:37 MyQQ\MyQQDlg.BAK
文件 31041 2011-07-14 10:49 MyQQ\MyQQDlg.cpp
文件 2764 2011-07-14 09:31 MyQQ\MyQQDlg.h
文件 3543 2003-04-05 09:22 MyQQ\ReadMe.txt
目录 0 2011-07-13 16:24 MyQQ\res\
文件 1078 2003-04-05 09:22 MyQQ\res\MyQQ.ico
文件 396 2003-04-05 09:22 MyQQ\res\MyQQ.rc2
文件 1508 2003-04-10 19:07 MyQQ\resource.h
文件 206 2003-04-05 09:22 MyQQ\StdAfx.cpp
文件 1102 2003-04-05 09:22 MyQQ\StdAfx.h
相关资源
- 曼彻斯特编解码_同步QuartusII工程
- linux下用多进程同步方法解决生产者
- 线程同步机制-AutoResetEvent
- 用FileSystemWatcher控件实现文件同步更新
- 基于CSocket的多人聊天室
- 采用WINSOCK2 编写的TCP/UDP通信程序
- HP磁盘备份方案:让数据备份与业务应
- 飞康CDP让两岸数据库即时同步
- 参数在线估算的永磁同步电机最大转
- 欧姆龙以太网通讯TCP/UDP及欧姆龙PLC程
- 静止同步补偿器(STATCOM)综述
- 基于RBF神经网络在线辨识的永磁同步
- EMC解决方案助交行实现业务大集中同
- 基于模糊PI的低速表贴式永磁同步电机
- 文件时间戳记同步(更改)工具
- FreeFileSync 免费文件同步 v10.19 Windows版
- 基于DSP的矿井提升机永磁同步电机D
- 目前找到最好用的文件同步软件
- 一种基于定子电压相角控制的永磁同
- 达梦DM产品白皮书包含共享集群,交换
- 单反相机的JPG和RAW文件同步删除
- 凌力尔特推出80V同步降压-升压型控制
- nginx与zookeeper交互,同步数据,发送系
- 对计算应用的典型同步降压调节器负
- 基于永磁同步电动机变频调速的带式
- 永磁直驱变频装置在皮带运输机中的
- 基于永磁同步电动机的矿用电机车调
- 鲁棒混沌系统的状态观测器同步
- 基于采样控制的时滞神经网络的指数
- 论文研究 - 虚拟同步发电机的新型电
评论
共有 条评论