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

  • qampsk
    QAM PSK 信号的调制星座图代码,实现调制信号的星座图显示和比较(the code of QAM&PSK Signal modulation constellation diagram )
    2013-12-09 16:39:55下载
    积分:1
  • Core8051_IS_UG
    说明:  8051指令集,指令說明 ADD, CLR, MOV, MOVX,..等(Core 8051 Instruction Set Details ADD, CLR, MOV, MOVX,..)
    2020-06-17 02:00:01下载
    积分:1
  • Lupin
    面向对象程序设计(C++)简易计算器,实现最简单的计算(C++ calculator)
    2013-04-21 20:13:57下载
    积分:1
  • 欧美知名ea_ForexComboSystem2.42
    欧美知名ea,现在回测欧美还能盈利,带mt4源码,内含dll(Europe and the United States known EA, now returned to Europe and the United States can also be profitable, with MT4 source code, containing DLL)
    2018-07-01 20:41:44下载
    积分:1
  • MPLAB_IDE
    MPLAB_IDE中文资料 中文介绍 MPLAB_IDE(MPLAB_IDE Chinese Information Chinese Introduction MPLAB_IDE)
    2013-08-07 22:13:04下载
    积分:1
  • TextView
    VC++应用程序开发中的文本操作详解,可以用过实例更好的理解与操作(The detailed text operation in the development of VC++ application program can be better understood and operated by examples.)
    2020-06-15 22:45:01下载
    积分:1
  • C++Primer第五版课本源代码
    C++Primer第五版课本源代码,配合书本一起使用。
    2022-11-30 05:35:03下载
    积分:1
  • Exam
    MFC 多文档视图添加对话框停靠窗,并实现其中的操作(MFC multi-document view Add dialog docked windows, and implement one operation)
    2015-10-12 11:16:57下载
    积分:1
  • ADC0832
    ADC0832模数转换与LCD-LED显示,带Protues仿真,keil工程(ADC0832 analog to digital converter and the LCD-LED display, the band Protues simulation, c51 engineering)
    2012-06-08 07:04:41下载
    积分:1
  • 嵌入式C编程与Atmel AVR(Richard Barnett)
    说明:  这是一本关于嵌入式方面的书籍,书名是嵌入式C编程与Atmel AVR,对于学习嵌入式的读者是很有用的学习资料。(This book, embeded C programming and Atmel AVR, introduces the knowledge about embed C programming, which is valuable for readers who are learning embed programming.)
    2020-06-22 00:40:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载