摘要: 首先定义一个基础消息结构体用于消息传递封包 然后新建一个对象成员是调用SendMessage API 然后封装发送消息都类 新建测试对象 最后是使用方法 接收端窗体消息过程 阅读全文
posted @ 2019-07-10 02:35 大芝麻 阅读(860) 评论(2) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include #include using namespace std; int main() { FILE *fp; errno_t err = fopen_s(&fp, "D://1.TXT", "rt"); //读取文件数据 cout << err << endl; char s[2]; int in... 阅读全文
posted @ 2019-06-12 12:45 大芝麻 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include #include using namespace std; typedef struct _MyDataTime { int Index;//保留 int Year; //年,这个日期为班次开始时的日期 int Month; //月 ... 阅读全文
posted @ 2019-06-12 12:43 大芝麻 阅读(804) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;namespace ConsoleApplication6{ class Program { static void Main(string[] args) { IPHostEntry hostinfo = Dns.GetHostEntry(@www.baidu.com); IPAddress[] aryIP = h... 阅读全文
posted @ 2013-08-18 18:11 大芝麻 阅读(462) 评论(0) 推荐(0) 编辑