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

  • xianxinglianbiao
    c语言编写链式线性表的初始化,创建,插入删除等操作。(c language chained linear table is initialized, create, insert and delete operations.)
    2013-11-09 14:30:30下载
    积分:1
  • Ethereal
    本Ethereal过滤规则语法规则,并附有相关命令。(This article introduced the Ethereal filtering rules gauge method, and related commands.)
    2013-11-15 16:04:15下载
    积分:1
  • Source
    Source wyd 7.55, contem alguns bugs em c++ , Source wyd 7.55, contem alguns bugs em c++
    2020-06-19 01:00:02下载
    积分:1
  • matrix_mul_block_parallel
    此程序使用MPI实现两个矩阵的相乘,使用的语言是C(This program uses MPI to achieve multiply two matrices, the use of the language is C)
    2011-05-13 22:53:57下载
    积分:1
  • enlarge
    对二维图片进行中心放大,能控制放大的倍数,采用最近邻法(enlarge pictures from the center of it,can control the index for enlargement)
    2014-01-07 11:26:28下载
    积分:1
  • 一个向导框架,用于制作向导程序,用的是形式,在…
    一个向导框架,用于制作向导程序,采用窗体继承的方式,欢迎使用-a wizard framework for the production of Wizard procedures, using the form of inheritance, welcomed the use of
    2022-06-22 06:03:30下载
    积分:1
  • STM32F407 软 I2C
    不使用 keil 工程文件,因为我的电脑进行加密。 这个项目使用 GPIO 模拟 I2C,并可以阅读 160 k 的最高速度。
    2023-04-09 09:10:04下载
    积分:1
  • C语言实现MATLAB 6.5中M文件的方法
    说明:  本文着重描述了运用MATLAB命令将M文件翻译为C语言程序,并修改为可直接调用的C语言函数的方法,使用该方法所需要注意的方法局限性和MATLAB版本差异的影响。运用该方法将能够使C语言能直接使用MATLAB当中已经完成的数学计算功能,大大扩充了C语言的数学计算功能和开发效率。(This paper describes the use of MATLAB M ordered the translation of documents for the C Programming Language, and revised to directly call the C language function, use of the method needed to limitations of the method and MATLAB version of the impact of differences. Using this method will enable C language can be used directly MATLAB which has been completed arithmetic function, greatly expanded the C language arithmetic functions and development efficiency.)
    2006-01-04 14:48:15下载
    积分:1
  • 鸡兔同笼
    说明:  C语言初学之鸡兔同笼实验,适合初学者。。。(The beginners of C Language are in the same cage)
    2020-06-23 05:40:02下载
    积分:1
  • ram
    this file is based on open cv programm that how to add text in a image
    2011-07-22 15:04:20下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载