OnAccept(); //CAsyncSocket::OnAccept(nErrorCode);}voidCMySocket::OnClose(intnErrorCode){//TODO:在此添加专用代码和/或调用基类if(nErrorCode==0)m_pDlg->OnClose();//CAsyncSocket::OnClose(nErrorCode);}-IMDN开发者社群-imdn.cn"> OnAccept(); //CAsyncSocket::OnAccept(nErrorCode);}voidCMySocket::OnClose(intnErrorCode){//TODO:在此添加专用代码和/或调用基类if(nErrorCode==0)m_pDlg->OnClose();//CAsyncSocket::OnClose(nErrorCode);} - IMDN开发者社群-imdn.cn">
登录
首页 » c++ » 基于CAsynSocket网络通信

基于CAsynSocket网络通信

于 2023-03-24 发布 文件大小:93.54 MB
0 130
下载积分: 2 下载次数: 1

代码说明:

// MySocket.cpp : 实现文件 // #include "stdafx.h" #include "TalkS.h" #include "MySocket.h" #include "TalkSDlg.h" // CMySocket CMySocket::CMySocket() :m_pDlg(NULL) { } CMySocket::~CMySocket() { } // CMySocket 成员函数 void CMySocket::SetParent(CTalkSDlg*pDlg) { m_pDlg = pDlg; } void CMySocket::OnAccept(int nErrorCode) { // TODO: 在此添加专用代码和/或调用基类 if(nErrorCode == 0) m_pDlg->OnAccept();  //CAsyncSocket::OnAccept(nErrorCode); } void CMySocket::OnClose(int nErrorCode) { // TODO: 在此添加专用代码和/或调用基类 if(nErrorCode == 0) m_pDlg->OnClose (); //CAsyncSocket::OnClose(nErrorCode); }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • STM32F10X_Project
    STM32F103控制iLi9341的2.4寸屏驱动例程,源码,带库函数,GPIO操作,可显示,已通过。(STM32F103 control iLi9341 2.4-inch screen driver routines, source code, library functions, GPIO operation can be displayed, has been adopted.)
    2016-11-20 14:18:11下载
    积分:1
  • opencv透视变换源码
    //依据opencv源码改编而来,代码中已剔除opencv源码中优化部分 void MywarpPerspective(const Mat &_src, Mat &_dst, const Mat &_M0, Size dsize, int flags, int borderType, const Scalar& borderValue) { Mat src = _src, M0 = _M0; _dst.create(dsize.empty() ? src.size() : dsize, src.type()); Mat dst = _dst; if (dst.data == src.data) src = src.clone(); double M[9]; Mat matM(3, 3, CV_64F, M); int interpolation = flags & INTER_MAX; if (interpolation == INTER_AREA) interpolation = INTER_LINEAR; M0.convertTo(matM, matM.type()); for (int i = 0; i < roiPoints.size(); i++) { double X0 = M[0] * roiPoints[i].
    2022-08-13 06:32:18下载
    积分:1
  • DFTaFFT-Concurrent
    多线程实现DFT和FFT算法 采用手动管理线程 结果输出至文本 未优化效率不高 (MultiThread DFT FFT)
    2016-02-15 16:51:12下载
    积分:1
  • 利用C#编写的网络聊天程序
    基于C#开发图形界面,实现客户端与服务器端的通信,可以在不同主机间通信,传送文件。
    2022-03-14 12:02:53下载
    积分:1
  • PEIA
    说明:  VB的程序,共享磁盘的,大家可以用来学习参考(VB program, shared disk, you can use to learn reference)
    2019-04-17 17:21:28下载
    积分:1
  • ROS机器人开发实践
    说明:  基于Linux系统,学习ROS机器人,主要用C++编程(based on the Linux , to learn ROS and use C++)
    2021-03-03 09:30:15下载
    积分:1
  • With a simple example of intuitive usage continue on!
    用简单的例子直观的阐述了continue 的用法!-With a simple example of intuitive usage continue on!
    2022-11-30 15:55:03下载
    积分:1
  • Mexaamleea
    Matcom是mathTools公司推出的一个能将M文件转化成相同功能C++代码的工具。相比Matlab自带的编译器Compiler,用Matcom转化代码要简单易懂懂与方便的多。本文将结合作者编程与开发经验,以以Visual C6.0与Matcom为例,详细介绍怎样运用Matcom进行Visual C与Matlab的联合编程与开发。 (Matcom is one can mathTools company launched M-file into a tool of same function C++ code. Compared to Matlab comes with the compiler, Compiler, with Matcom conversion code should be simple to understand and easy to understand and convenient. This article will be combination of programming and development experience in Visual C6.0 and Matcom, for example, details how to use Matcom Visual C and Matlab programming and development.)
    2012-08-20 07:18:23下载
    积分:1
  • hload
    vxworks的引导工具,可以在dos下直接引导vxworks镜像,速度非常快(vxworks loader,can load vxworks image file directily under DOS system,very fast,a fantastic tool)
    2017-04-24 10:00:48下载
    积分:1
  • 情感分析用词语集·知网hownet词典
    该软件可以实现微博分析、聊天分析、全网分析、网站分析、浏览分析、分词、词频统计、英文词频统计、流量分析、聚类分析等一系列文本分析(The software can realize micro-blog analysis, chat analysis, whole network analysis, website analysis, browse analysis, word segmentation, word frequency statistics, English word frequency statistics, traffic analysis, clustering analysis and a series of text analysis.)
    2020-10-29 22:49:58下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载