摘要: Server:using System.Net;using System.Net.Sockets;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ServerCon... 阅读全文
posted @ 2014-08-14 16:15 oszhouzhb 阅读(125) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;namespace ConsoleApplication1{ class Program { [DllImport("kernel32.dll")] publi... 阅读全文
posted @ 2014-07-28 15:28 oszhouzhb 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 项目右键属性——资源——添加资源展开——添加现有文件paint方法中: private void Form1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) ... 阅读全文
posted @ 2014-07-23 21:14 oszhouzhb 阅读(213) 评论(0) 推荐(0) 编辑
摘要: extern void DrawWindowFrame(HWND hWnd)//画窗口边框{ RECT rc; HWND DeskHwnd = ::GetDesktopWindow(); //取得桌面句柄 HDC DeskDC = ::GetWindowDC(DeskHwnd); ... 阅读全文
posted @ 2014-07-21 15:55 oszhouzhb 阅读(253) 评论(0) 推荐(0) 编辑
摘要: /images/lodding1.gif" id="lodding" style="margin-right:10px;margin-top:0px;"/>正在处理,请稍候... 阅读全文
posted @ 2014-07-14 12:53 oszhouzhb 阅读(624) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll", EntryPoint="SendMessageA")] private static extern int SendMessage(IntPtr hwnd, uint wMsg, uint wParam, uint lParam); ... 阅读全文
posted @ 2014-07-11 15:49 oszhouzhb 阅读(503) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Windows.Forms;namespace zhbCapture{ /// /// Description of Utils. /// public class Utils { public st... 阅读全文
posted @ 2014-07-11 15:39 oszhouzhb 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 一个正则表达式就是由普通字符(例如字符 a 到 z)以及特殊字符(称为元字符)组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。这里有一些可能会遇到的正则表达式示例:JScriptVBScript匹配/^\[ \t]*... 阅读全文
posted @ 2014-04-20 20:32 oszhouzhb 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 类型:function可见性:public所在单元:RegularExpressionsCore父类:TPerlRegEx把转义字符变成原意字符例如\d意为0~9某个数字,通过此函数转换后则变成\d字符,不存在转义,效果和\\d一样测试代码:program Project1;{$APPTYPE CO... 阅读全文
posted @ 2014-04-20 20:23 oszhouzhb 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Delphifunction ComputeReplacement: UTF8String;类型:function可见性:public所在单元:System.RegularExpressionsCore父类:TPerlRegEx取出替换内容,不修改Subject测试代码:program Match;... 阅读全文
posted @ 2014-04-20 20:00 oszhouzhb 阅读(126) 评论(0) 推荐(0) 编辑