摘要: 需要调用以下WINAPI [DllImport("Kernel32.dll",EntryPoint="CreateFileMapping", SetLastError=true,CharSet=CharSet.Unicode)]internal static extern IntPtr CreateFileMapping(uint hFile, SecurityAttributes lpA... 阅读全文
posted @ 2008-11-27 05:45 icerain 阅读(2911) 评论(0) 推荐(0) 编辑
摘要: 提起多线程,不得不提起 委托(delegates)这个概念. 我理解的委托就是 具有 同样参数和返回值 的函数的集合.比如public delegate void MyDelegate(int arg);就是这种形式的函数 void Myfuntion(int i); 的集合.如何将一个函数加入 委托 的集合?MyDelegate dele = new MyDelegate(Myfuntion1)... 阅读全文
posted @ 2008-11-27 03:59 icerain 阅读(15824) 评论(2) 推荐(0) 编辑
摘要: VS2008提示 违反并发性: UpdateCommand 影响了预期 1 条记录中的 0 条 结果查明原因跟并发性无关 是因为数据格式错误导致. 尤其是在使用某些本身就有并发问题的数据库的时候 例如SQLITE 这个提示会把你引向歧途. 阅读全文
posted @ 2008-11-27 03:02 icerain 阅读(453) 评论(1) 推荐(0) 编辑
摘要: C#中时间、日期的常用输出和存储方式比较 还是用不好折叠 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> static void Main(string[] args) { //获取当前时间... 阅读全文
posted @ 2008-11-09 13:04 icerain 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 正式进驻CNBLOGS 阅读全文
posted @ 2008-11-08 12:51 icerain 阅读(170) 评论(0) 推荐(0) 编辑