2008年3月3日

Copy Screen Object to Bitmap File

摘要: This is not a big deal, but it is worth to share for everyone.1privatevoidcopyScreen(stringfilename)2{3Bitmapbmp=newBitmap(this.Width,this.Height);4GraphicsgBmp=Graphics.FromImage(bmp);5IntPtrgBmpHdc=... 阅读全文

posted @ 2008-03-03 11:51 Hill Jing 阅读(2106) 评论(8) 推荐(0)

2008年2月29日

Phoenix Browser Renascence -- Beta 1 Release for Windows Mobile platform

摘要: PHOENIX BROWSER RENASCENCEPhoenix Browser is an Internet Explorer for Windows Mobile platformIt has the following major features.It is free.It supports multiple window.It supports View as Picture.Welc... 阅读全文

posted @ 2008-02-29 10:46 Hill Jing 阅读(829) 评论(0) 推荐(0)

2007年11月12日

Introduction to COM

摘要: COM 的基本概念1. Interfaces: 在COM里,一个Interface是一个函数指针表,由Object来维护。所有Interface都是基于IUnknown。每个Interface都有一个唯一的Interface标识。IID2. IUnknown: IUnknown定义了QueryInterface:AddRef:Release:3. Reference Counting: Objec... 阅读全文

posted @ 2007-11-12 11:54 Hill Jing 阅读(194) 评论(0) 推荐(0)

2007年11月7日

Private Constructor and Singleton design pattern

摘要: public class Singleton{static readonly Singleton instance = new Singleton();static Singleton() //Private Constructor to make sure it cannot be instantiated out of the class bounds.{}public static Sing... 阅读全文

posted @ 2007-11-07 10:47 Hill Jing 阅读(301) 评论(0) 推荐(0)

VS 2008 支持Multi-Targeting

摘要: 什么是 Multi-Targeting?以前颁布的Visual Studio只支持一种.NET Framework. 例如, VS 2002 只工作在.NET 1.0, VS 2003只工作在.NET 1.1,VS 2005只工作在.NET 2.0.VS 2008 的重大改变之一就是支持"Multi-Targeting" - 那就是说VS将支持多种版本的.NET Framework。开发人员将就此... 阅读全文

posted @ 2007-11-07 10:28 Hill Jing 阅读(231) 评论(0) 推荐(0)

2007年10月3日

.NET 多线程和并发性管理(Multithreading and Concurrency Management)

摘要: 典型的应用程序都是由两种基本的操作组成的:CPU-bound和I/O-bound;常用的I/O-bound的操作有:I/O设备 : 键盘,显示器,鼠标和打印机等.硬件驱动:网络或通讯端口;其它硬件设备区分不同的操作类型有助于分配不同的任务到不同的线程,这样可以提高程序的性能、增加硬件的吞吐量。不过切记不要为了多线程而多线程,否则就像打开了潘多拉的盒子,有无数麻烦的事情等着你,例如:线程同步、组件并... 阅读全文

posted @ 2007-10-03 11:31 Hill Jing 阅读(1319) 评论(0) 推荐(0)

2007年9月30日

C# 编程规范 (coding standard)

摘要: 读书笔记, 摘自《Programming .NET Components》1. 用Pascal命名原则定义类型、函数和常量。public class SomeClass { const int DefaultSize = 100; public SomeMethod() {}}2. 用camel命名原则定义局部变量和函数参数。int number;void MyMethod(int someNum... 阅读全文

posted @ 2007-09-30 23:03 Hill Jing 阅读(481) 评论(1) 推荐(0)

导航