摘要: 写了如下代码:[代码]结果不能编译,原因是“Attribute”是一个特性类,无法从它派生泛型类型。有点出乎意外。 阅读全文
posted @ 2010-06-05 16:25 刘俊峰 阅读(963) 评论(6) 推荐(0) 编辑
摘要: 1.条件断点在断点上弹出右键菜单,点“条件 ...”,可以设置断点条件。2. 异常中断点击“调试->异常”菜单,可以设置异常抛出时中断3. 添加类成员在类图类详细信息窗口里可以添加类成员,自动生成代码。 阅读全文
posted @ 2010-05-30 21:46 刘俊峰 阅读(338) 评论(0) 推荐(1) 编辑
摘要: C#实现的一维的区间的子集,交集和并集运算 阅读全文
posted @ 2010-05-21 18:52 刘俊峰 阅读(1356) 评论(0) 推荐(2) 编辑
摘要: 一直用世界之窗3.0,目前有一个比较郁闷的地方是启动下载管理器的时候整个浏览器会假死一段时间。搜狗浏览器2.0正式版发布后,感觉快赶上世界之窗了,有以下几点比较引人:1. 支持我喜欢的Chrome皮肤。2. 支持IE和Webkit双内核。3. 防假死和一些加速功能。因此今天试用了一下,感觉挺好,只是还有以下几点需要改进:1. 允许自定义收藏夹的路径,从而可以使用和IE不同的收藏夹。2. Chrom... 阅读全文
posted @ 2010-04-09 17:14 刘俊峰 阅读(1870) 评论(7) 推荐(0) 编辑
摘要: 先用Expression做了矢量图,然后导入到Blend里做成了走路的动画。接下来用矢量图动画代替切换图片帧的动画,也做成了SliverLight程序。 阅读全文
posted @ 2010-03-31 15:32 刘俊峰 阅读(1656) 评论(2) 推荐(2) 编辑
摘要: 通过启动相应的WinPE,可以直接使用光盘镜像来安装Windows7和Windows Server 2008.制作方法:1、把windows7光盘(或光盘镜像)里的\sources\boot.wim文件复制到d:\2、在imgaex目录里右键点击inf文件,选安装。(Imagex 6.0 AIK 封装工具)3、运行cmd,进入imgaex目录。4、imagex /mountrw d:\boot.w... 阅读全文
posted @ 2010-03-10 12:16 刘俊峰 阅读(3237) 评论(0) 推荐(1) 编辑
摘要: 用WPF做2D的SuperMario游戏 阅读全文
posted @ 2010-03-04 18:23 刘俊峰 阅读(7944) 评论(17) 推荐(3) 编辑
摘要: Create, read and modify Excel files without using COM interop or OLEDB connection. 阅读全文
posted @ 2010-02-25 19:11 刘俊峰 阅读(1818) 评论(3) 推荐(3) 编辑
摘要: 简单实用的抓屏软件,可以捕捉全屏、窗口或者选定区域。 阅读全文
posted @ 2010-02-11 16:54 刘俊峰 阅读(2595) 评论(11) 推荐(0) 编辑
摘要: Total Commander里Help菜单在菜单栏右对齐的效果是什么原理,用C#怎么做?如图:谢谢 游民一族 的指点,终于找到方法了。[代码]刚开始我把MenuItemInfo定义为struct,总是报Attempted to read or write protected memory的异常,搞了好半天才发现要用class。 阅读全文
posted @ 2010-02-09 18:59 刘俊峰 阅读(1665) 评论(6) 推荐(0) 编辑
摘要: The IPMessager program is redeveloped using C# 3.5 and WPF. It can send messages, files, folders between machines of a Local Area Network. 阅读全文
posted @ 2010-02-02 14:18 刘俊峰 阅读(1194) 评论(12) 推荐(1) 编辑
摘要: LZW Compress algorithm in C# code. 阅读全文
posted @ 2010-01-13 16:08 刘俊峰 阅读(1166) 评论(3) 推荐(1) 编辑
摘要: My origami art work. 阅读全文
posted @ 2010-01-08 18:45 刘俊峰 阅读(286) 评论(0) 推荐(1) 编辑
摘要: RC4 Encrypt Decrypt Algoritm in C# code. 阅读全文
posted @ 2010-01-04 18:21 刘俊峰 阅读(1484) 评论(0) 推荐(1) 编辑
摘要: MD5 Algorithm in C# code. 阅读全文
posted @ 2010-01-02 19:59 刘俊峰 阅读(584) 评论(1) 推荐(0) 编辑
摘要: ASCII85 Encode Decode Algorithm in C# code. 阅读全文
posted @ 2009-12-31 16:31 刘俊峰 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: Base64 Encode Decode Algorithm in C# code. 阅读全文
posted @ 2009-12-29 17:05 刘俊峰 阅读(516) 评论(2) 推荐(0) 编辑