2004年8月26日

int整数和byte[]数组互相转换

摘要: BitConverter.GetBytes(Parameter);//将指定的数据转换为字节数组。BitConverter.ToUInt32(buf, index);//返回由字节数组中指定位置的四个字节转换来的 32 位无符号整数。 阅读全文

posted @ 2004-08-26 16:11 b28 阅读(633) 评论(1) 推荐(0)

[转载]Hello Word Outlook Add-In using C#

摘要: One thing I’d like to play with is extending Outlook through add-ins with C#. It’ll be a good opportunity to learn more about .NET development and the Windows tools. Plus, I can “fix” some of the thi... 阅读全文

posted @ 2004-08-26 01:00 b28 阅读(301) 评论(0) 推荐(0)

利用Mutex实现应用程序的单实例运行

摘要: System.Threading.Mutex :同步基元,它只向一个线程授予对共享资源的独占访问权。[MSDN]实现原理: 在程序启动时,请求一个互斥体,如果能获取对指定互斥的访问权,就继续运行程序,否则就退出程序。测试代码: class Test { /// /// 应用程序的主入口点。 /// [STAT... 阅读全文

posted @ 2004-08-26 00:56 b28 阅读(234) 评论(0) 推荐(0)

导航