摘要: SQL类型:http://msdn.microsoft.com/en-us/library/ms174415.aspxselect convert(nvarchar(255),HashBytes('SHA1','888888'),2) 得出的结果:1F82C942BEFDA29B6ED487A51DA199F78FCE7F05 declare @pasd nvarchar(255)set @pasd='888888'select convert(nvarchar(255),HashBytes('SHA1',@pasd),2)得出的 阅读全文
posted @ 2011-12-31 23:51 微米大大 阅读(315) 评论(0) 推荐(0) 编辑
摘要: C#语言规范版本 4.0 注意© 1999-2010 Microsoft Corporation。保留所有权利。Microsoft、Windows、Visual Basic、Visual C# 和 Visual C++ 是 Microsoft Corporation 在美国和/或其他国家/地区的注册商标或商标。本文提及的其他产品和公司名称可能是其各自所有者的商标。 目录1. 简介........................................................................................................ 阅读全文
posted @ 2011-12-17 16:24 微米大大 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: string ipAddress = GetParamValue("IpAddress", "192.168.1.2"); int? port = GetParamIntValue("Port", 300); if (string.IsNullOrEmpty(ipAddress)) { thrownew Exception("IpAddress配置不正确。"); } if (!port.HasValue) ... 阅读全文
posted @ 2011-07-21 23:46 微米大大 阅读(1029) 评论(0) 推荐(2) 编辑
摘要: 运行之后的页面代码: GraphicsWindow.DrawEllipse(5,4,50,50) 在页面上画个圆[5,4,50,50]5是x坐标,4是y的坐标,50是高度和宽度 阅读全文
posted @ 2011-07-16 00:19 微米大大 阅读(204) 评论(0) 推荐(0) 编辑
摘要: //执行Sql文件 Thread.Sleep(1000); System.Diagnostics.Process pr = new System.Diagnostics.Process(); pr.StartInfo.FileName = "osql.exe"; pr.StartInfo.Arguments = string.Format(" -U... 阅读全文
posted @ 2011-06-16 16:07 微米大大 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 直接上代码窗体加载 1 privatevoid Form1_Load(object sender, EventArgs e) 2 { 3 serialPort1.PortName ="COM3"; 4 serialPort1.BaudRate =9600; 5 serialPort1.DataBits =8; 6 serialPort1.Open(); 7 if (serialPort1.IsOpen) 8 { 9 serialPort1... 阅读全文
posted @ 2011-06-11 20:29 微米大大 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 3 using System.Collections.Generic; 4 using System.Text; 5 using System.Runtime.InteropServices; 6 7 namespace Microwind.SmartRfid.MockProvider 8 { 9 publicclass WinCEApi10 {11 publicconstint LMEM_FIXED =0x0000;12 publicconstint LMEM_ZEROINIT =0x0040;13 publicconstint LPTR = (L... 阅读全文
posted @ 2011-05-28 15:05 微米大大 阅读(393) 评论(0) 推荐(1) 编辑