- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 A simple C# generic singleton class
using System;using System.Reflection;namespace MiniCafe.Util{ /// /// this is the base class for singleton mode in csharp. Derived class must have a /// privae or protected constructor wit
2006-06-30 16:30:00 1052
原创 A class to play sound on netcf in CSharp (二)
在实际测试中发现上一片文章(A class to play sound on netcf in CSharp)中介绍的播放声音的类在pda中运行正常,但却无法在pc中工作,简单分析了一下原因,发现是dll的问题,pc和pda播放声音时用的dll不同。pc中是winmm,而pda中则是coredll,项目需要在pc和pda上都可以运行,因此加入了动态判断功能,识别程序运行在pc还是pda中,从而加载
2006-06-22 12:28:00 1216
原创 让.net程序识别自己的运行平台
.net编写的,运行在智能设备上的程序有时候也需要运行在pc上,但有些功能在net和netcf上的实现方式不同,或者是一些其他的原因,使得程序在运行时需要动态识别自己究竟是运行在net frameword上还是智能设备的netcf上。在一个项目中遇到了这个问题,本来想通过判断net的版本号来识别,但没有找到合适的方法。因此临时用了下面的这个方法,虽然不是很好,但却是很有效(原理就是运行一个netc
2006-06-22 12:21:00 1064
转载 A class to play sound on netcf in CSharp
using System;using System.Runtime.InteropServices;using System.Collections.Generic;using System.Text;namespace MiniCafe.Util{ /// /// internal helper class /// internal class Helpers
2006-06-15 20:28:00 1384
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人