会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大芝麻
博客园
首页
新随笔
联系
订阅
管理
2019年7月10日
C#如何使用SendMessage安全的跨线程,跨进程传递任意对象
摘要: 首先定义一个基础消息结构体用于消息传递封包 然后新建一个对象成员是调用SendMessage API 然后封装发送消息都类 新建测试对象 最后是使用方法 接收端窗体消息过程
阅读全文
posted @ 2019-07-10 02:35 大芝麻
阅读(1015)
评论(2)
推荐(0)
2019年6月12日
fopen_s在文件中读写字符串
摘要: #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 大芝麻
阅读(1274)
评论(0)
推荐(0)
C语言fopen_s读写结构体
摘要: #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 大芝麻
阅读(818)
评论(0)
推荐(0)
2013年8月18日
C#网络通信学习笔记-通过域名解析IP地址
摘要: 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 大芝麻
阅读(468)
评论(0)
推荐(0)
公告