摘要: [assembly: AssemblyVersion("1.0.0.3")]代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassWin32API{#region====Kernel32.dll====///<summary...阅读全文
posted @ 2010-03-27 15:19 o﹎Lin゛ 阅读(262) 评论(0) 编辑
摘要: 通过重写 ProcessCmdKey 方法[代码]阅读全文
posted @ 2009-10-08 11:45 o﹎Lin゛ 阅读(207) 评论(0) 编辑
摘要: 有时在开发程序的时候, 有时需要只能同时运行一个实例.Mutex 类, 称为互拆体, 是一个同步基元, 它只向一个线程授予对共享资源的独占访问权。当两个或更多线程需要同时访问一个共享资源时,系统需要使用同步机制来确保一次只有一个线程使用该资源。如果一个线程获取了互斥体,则要获取该互斥体的第二个线程将被挂起,直到第一个线程释放该互斥体。下面演示 Mutex 类来保证应用程序只有唯一实例[代码]阅读全文
posted @ 2009-10-06 11:16 o﹎Lin゛ 阅读(189) 评论(0) 编辑
摘要: [代码]阅读全文
posted @ 2009-06-21 10:49 o﹎Lin゛ 阅读(273) 评论(2) 编辑
摘要: WORD 16位无符号整数LONG 32位有符号整数DWORD 无符号长整数HANDLE 用作句柄的32位整数HWND 用窗口句柄的32位整数UINT 32位无符号整数BOOL BYTE 8位无符号字符PSTR 指向字符串的32位指针PCSTR 指向字符串的常量指针阅读全文
posted @ 2009-04-27 10:45 o﹎Lin゛ 阅读(231) 评论(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;namespacelsb.DBUtility{///<summary>///SQ...阅读全文
posted @ 2009-03-02 09:28 o﹎Lin゛ 阅读(484) 评论(2) 编辑
摘要: sqlHelper.cs[代码]IDBHelper.cs[代码]不知道这样写好不好, 心里还没有数 ~~上面的方法中要不要用 ref stirng ErrMsg 呢?还是把上面的方法改为静态方法?阅读全文
posted @ 2009-02-26 10:14 o﹎Lin゛ 阅读(512) 评论(5) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include<windows.h>//窗口过程声明LRESULTCALLBACKWndProc(HWND,UINT,WPARAM,LPARAM);int__stdcallWinMain(H...阅读全文
posted @ 2009-02-16 08:40 o﹎Lin゛ 阅读(172) 评论(0) 编辑
摘要: //截取字符串 包含中文处理function SubString(str, len, hasDot) { var newLength = 0; var newStr = ""; var chineseRegex = /[^\x00-\xff]/g; var singleChar = ""; var strLength = str.replace(chineseRegex, "**").length...阅读全文
posted @ 2009-01-13 16:17 o﹎Lin゛ 阅读(181) 评论(0) 编辑
摘要: /*******************************************字符串函数扩充(StringEx.js) *******************************************///移除两边空白String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "");}阅读全文
posted @ 2009-01-13 16:16 o﹎Lin゛ 阅读(277) 评论(0) 编辑