10 2011 档案

摘要:private string GetMD5Hash(string input) { System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] bs = System.Text.Encoding.UTF8.GetBytes(input); bs = x.ComputeHash(bs); System.Text.StringBuilder... 阅读全文
posted @ 2011-10-28 13:48 许明吉博客 阅读(371) 评论(0) 推荐(0)
摘要:string checkCode = "1234";//1234随机数 int iwidth = (int)(checkCode.Length * 11.5); //封装 GDI+ 位图,此位图由图形图像及其属性的像素数据组成 .指定宽度和高度。以象素为单位 System.Drawing.Bitmap image = new System.Drawing.Bitmap(iwidth, 20); //封装一个 GDI+ 绘图图面。无法继承此类. 从指定的 Image 创建新的 Graphics Graphics... 阅读全文
posted @ 2011-10-27 17:50 许明吉博客 阅读(554) 评论(0) 推荐(0)
摘要:客户端代码:unitUnit1;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms,Dialogs,IdBaseComponent,IdComponent,IdTCPConnection,IdTCPClient,IdHTTP,StdCtrls;typeTForm1=class(TForm)IdHTTP1:TIdHTTP;Button1:TButton;Button2:TButton;Memo1:TMemo;procedureButton2Click(Sender:TObject);pri 阅读全文
posted @ 2011-10-27 15:32 许明吉博客 阅读(2203) 评论(0) 推荐(0)
摘要:DWORDGetTickCount(void);1) 定义For Release configurations, this function returns the number of milliseconds since the device booted, excluding any time that the system was suspended.GetTickCountstarts at 0 on boot and then counts up from there.在Release版本中,该函数从0开始计时,返回自设备启动后的毫秒数(不含系统暂停时间)。For Debug con 阅读全文
posted @ 2011-10-17 14:11 许明吉博客 阅读(78103) 评论(0) 推荐(7)