2020年6月8日

c++ ping 功能实现(mfc)

摘要: 现在我们将代码移植到我们的mfc中,定义编辑款edit3为域名输入,IDC_IPADDRESS2为解析IP地址;Button1为启动测试控制键。 为button1添加bn_clicked事件回调函数: 设置button1文本context内容: CButton*pbutton = (CButton* 阅读全文

posted @ 2020-06-08 23:23 Milo_lu 阅读(979) 评论(0) 推荐(0) 编辑

c++ ping 功能实现

摘要: 今天讲一下ping功能和解析域名获取ip地址: 代码如下: ping功能实现(默认超时时间2000ms): #include "stdafx.h" #include "Source.h" #include <iostream> USHORT CPing::s_usPacketSeq = 0; CPi 阅读全文

posted @ 2020-06-08 11:44 Milo_lu 阅读(937) 评论(1) 推荐(1) 编辑

导航