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 142
下载积分: 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 个回复

  • VC_Programming_code_multi_threaded_port_scanner
    VC编程开发多线程端口扫描程序代码VC Programming code multi-threaded port scanner (VC Programming code multi-threaded port scanner )
    2010-09-08 14:24:55下载
    积分:1
  • BitmapRotateBitmaponc
    bitmap rotate for visual c and c++ builder
    2009-06-12 14:54:35下载
    积分:1
  • Mackey-Glass
    Mackey-Glass prediction series
    2010-02-06 13:02:29下载
    积分:1
  • send
    组播发送端,socket通信,Windows网络编程(Multicast sender, socket communications, Windows network programming)
    2021-01-13 22:48:47下载
    积分:1
  • matrix-multiplication-based-OpenMp-
    基于C语言的,在共享内存的并行机上使用OpenMP并行环境实现矩阵乘法(C-based, shared memory parallelism using OpenMP on a parallel machine environment to achieve the matrix multiplication)
    2011-06-25 12:52:19下载
    积分:1
  • bolum04
    Learing C Programning tutorial in Turkey
    2013-05-01 04:18:54下载
    积分:1
  • LSMI-GPU-CUDA
    程序是基于GPU的CUDA架构进行通用计算的程序,程序实现的功能是阵列信号处理的波束形成,实现方法是LSMI即迭代对角加载采样矩阵求逆法,用的编程软件是vs2012,用的是CUDA C语言,一种c++语言的扩展(the program is based on GPU s CUDA,its function is beamform for array signal process,the method is LSMI,vs2012 is used)
    2020-07-01 19:20:02下载
    积分:1
  • 晴天写的网络验证页面
    漂亮的网络验证 可以用来写收费软件 页面优化完美 时尚漂亮
    2022-03-18 16:36:29下载
    积分:1
  • burns
    该程序是发表在IEEE上的经典直线提取论文“Extracting Straight Lines”的源代码实现,对计算机视觉、模式识别和信息提取等领域的科学研究人员具有极其重要的参看意义。建议下载学习和适用。(The program is published in the IEEE paper on the classic straight-line extraction " Extracting Straight Lines" the source code implementation of computer vision, pattern recognition and information extraction and other areas of scientific researchers see an extremely important significance. Recommended to download to learn and to apply.)
    2021-03-26 16:39:13下载
    积分:1
  • MMBPlugInSDK
    Multimedia Builder 是一款制作多媒体程序的优秀软件。它具有强大易用的交互功能,丰富的对象使用,潜力无限的脚本语言,以及小巧易懂的小助手,并且支持绝大多数的多媒体文件格式,加上内建多种影像处理效果,将能帮助你快速的开发一个漂亮的互动式多媒体应用程序。 本套代码为MMB的PLUGIN SDK,用于扩展MMB的应用程序功能。(Multimedia Builder is a multimedia program produced excellent software. It has a powerful and easy to use interactive features, rich object the use of unlimited potential scripting language, as well as small and easy to understand his assistant, and support the vast majority of multimedia file formats, plus built-in a variety of image processing effects, will be able to to help you quickly develop a beautiful, interactive multimedia applications. This set of code for the MMB' s PLUGIN SDK, the application for the expansion of MMB function.)
    2010-03-08 23:58:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载