05 2013 档案

摘要:原文为:http://blog.csdn.net/wangyue4/article/details/6819102/byte[]转图片publicstaticBitmapBytesToBitmap(byte[]Bytes){MemoryStreamstream=null;try{stream=newMemoryStream(Bytes);returnnewBitmap((Image)newBitmap(stream));}catch(ArgumentNullExceptionex){throwex;}catch(ArgumentExceptionex){throwex;}finally{str 阅读全文
posted @ 2013-05-27 19:04 佳序 阅读(355) 评论(0) 推荐(0) 编辑
摘要:主要是怎么监控一个线程正在运行 用if(“线程”!= null)来断定正在运行。 /// <summary> /// 创建循环线程 led_Start /// </summary> /// <param name="sender"></param> /// <param name="e"></param> static void led_Start() { int p; IntPtr gpiodriver = CreateFile("GIO1:", GENERIC 阅读全文
posted @ 2013-05-24 13:40 佳序 阅读(149) 评论(0) 推荐(0) 编辑
摘要:转载的http://www.2cto.com/kf/201211/165689.html 我在程序中用了Image与 byte[]的转换 很好用! 阅读全文
posted @ 2013-05-20 11:18 佳序 阅读(168) 评论(0) 推荐(0) 编辑
摘要:需要用到wince系统的自带键盘,参考网上做了一个按钮事件 代码如下:public Form1() { InitializeComponent(); } public static uint SIPF_OFF = 0x00;//软键盘关闭 public static uint SIPF_ON = 0x01;//软键盘打开 [DllImport("coredll.dll")] public extern static void SipShowIM(uint dwFlag); bool KeyBoardOn = true; private void button1_Click( 阅读全文
posted @ 2013-05-20 11:09 佳序 阅读(207) 评论(0) 推荐(0) 编辑
摘要:把debug口改为普通串口 阅读全文
posted @ 2013-05-15 13:37 佳序 阅读(308) 评论(0) 推荐(0) 编辑