10 2009 档案

摘要: 4、线程执行的函数 private void receive() { //设置读取数据的空间 byte[] bb = new byte[3]; //读取3个字节,i为实际读取的字节数 int i = stream.Read(bb,0,3); //转换成字符串,如果是中文控制码则用string ss = //System.Text.Encoding.Unicode.GetString(bb); st...阅读全文
posted @ 2009-10-31 17:15 会游泳dě鱼 阅读(11) | 评论 (0) 编辑
摘要: 18、内存管理2 --- x64OS 地址空间规划[ 本帖最后由 mik 于 2009-9-11 00:02 编辑 ] mouse_space.jpg (56.77 KB) 2009-9-11 00:00 您对本贴的看法:鲜花[0] 臭蛋[0]__________________________________os 实验品:mouseOS 项目---- x64 体系(使用 Nasm+FlexHE...阅读全文
posted @ 2009-10-31 16:08 会游泳dě鱼 阅读(39) | 评论 (0) 编辑
摘要: 我是想获取游戏手柄的状态信息。。然后想通过编程修改游戏手柄状态信息(不知道如何实现)。。具体步骤如下我先是建立设备 Device dev;设备初始化需要GUID,所有枚举所有设备,由于我的游戏手柄只有1个,所有只取一个GUID Guid id = new Guid(); foreach (DeviceInstance di in Manager.GetDevices(DeviceClass.Gam...阅读全文
posted @ 2009-10-30 21:47 会游泳dě鱼 阅读(439) | 评论 (1) 编辑
摘要: 通过上一篇“通过API实现C#对硬件的控制(一)”我们掌握了我们所需要的相关API知识点。为此,我们现在来构建我们自己的外部调用类:Externs。由于有上一篇的详细说明,该处不再一一说明相关的函数知识点。下面是该类的代码:using System;using System.Collections.Generic;using System.Text;using System...阅读全文
posted @ 2009-10-30 11:14 会游泳dě鱼 阅读(167) | 评论 (0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Threading;namespace ComDevice...阅读全文
posted @ 2009-10-30 09:31 会游泳dě鱼 阅读(54) | 评论 (0) 编辑
摘要: 串口通信using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Microsoft.VisualBasic;using Micr...阅读全文
posted @ 2009-10-30 09:29 会游泳dě鱼 阅读(53) | 评论 (0) 编辑
摘要: 获取游戏设备using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using DemoGameContorl;using Microsof...阅读全文
posted @ 2009-10-30 09:27 会游泳dě鱼 阅读(163) | 评论 (0) 编辑