2009年9月26日

摘要: CFrameWndFrame windows are windows that frame an application or a part of an application. Frame windows usually contain other windows, such as views, tool bars, and status bars. In the case of CMDIFrameWnd, they may contain CMDIChildWnd objects indirectly. CDocumentA document represents the unit of 阅读全文
posted @ 2009-09-26 17:19 做个不善的人 阅读(396) 评论(0) 推荐(0)
 
摘要: AppDomainAppDomain可以视为一种轻量级进程,AppDomain可以像进程一样独立加载Assembly。一个Windows进程可以包含多个AppDomain。但是与进程不同的是,进程与线程有隶属关系,但是,AppDomain和进程之间是正交的,他们没有隶属关系。例如,一个进程存在两个AppDomain:ADA和ADB,对象A来自ADA,对象B来自ADB,如果A的某个方法调用了B的方法,这两个方法会在同一个线程中执行。使用AppDomain的好处创建AppDomain所需要的系统资源比创建一个Windows进程要少;同一个Windows进程内的AppDomain之间可以共享资源,如 阅读全文
posted @ 2009-09-26 11:12 做个不善的人 阅读(569) 评论(0) 推荐(0)
 

2009年9月15日

摘要: Finalize()This method is automatically called after an object becomes inaccessible, unless the object has been exempted from finalization by a call to SuppressFinalize. During shutdown of an application domain, Finalize is automatically called on objects that are not exempt from finalization, even t 阅读全文
posted @ 2009-09-15 16:42 做个不善的人 阅读(1605) 评论(0) 推荐(0)
 
摘要: Type.IsPointer:判断一个类型是否是一个指针。什么时候会返回true呢?Type.IsAssignableFrom(Type c): b.IsAssignableFrom(c)在以下几种情况下会返回true:b和c是同一类型;b是c的父类或者c实现的接口;c是泛型类型参数,而b表示c的约束之一;以上不符合或者c是空引用时为false; 阅读全文
posted @ 2009-09-15 12:42 做个不善的人 阅读(218) 评论(0) 推荐(0)
 

2009年9月10日

摘要: PSTN简介所谓公用电话交换网(PSTN——Public Switch Telephone Network),即我们日常生活中常用的电话网。 众所周知,PSTN是一种以模拟技术为基础的电路交换网络。在众多的广域网互连技术中,通过PSTN进行互连所要求的通信费用最低,但其数据传输质量及传输速度也最差,同时PSTN的网络资源利用率也比较低。通过PSTN可以实现的访问:-拨号上Internet/Intranet/LAN;-两个或多个LAN之间的网络互连;-和其它广域网技术的互连 尽管PSTN在进行数据传输时存在这样或那样的问题,但这是一种仍不可替代的联网介质(技术)。特别是Bellcore发明的建立 阅读全文
posted @ 2009-09-10 19:12 做个不善的人 阅读(5905) 评论(0) 推荐(0)
 

2009年9月7日

摘要: C#中与参数有关系的关键字有三个params、ref及out paramsThe params keyword lets you specify a method parameter that takes an argument where the number of arguments is variable.No additional parameters are permitted after the params keyword in a method declaration, and only one params keyword is permitted in a method d 阅读全文
posted @ 2009-09-07 19:39 做个不善的人 阅读(2122) 评论(0) 推荐(1)
 

2009年9月5日

摘要: Win32程序开发与执行流程Winows程序分为源程序和资源两部分。源程序经由C/C++编译器生成.obj文件;资源部分经由RC编译器,读取RC文件的描述后,将所有资源文件集中制作出一个.res文件.res文件与.obj文件结合在一起,集成为一个完整的.exe可以执行文件,该文件才是一个完整的Windows应用程序.其开发与执行流程如图:win32程序开发与执行流程图应用源程序编译链接,生成可执行文件之后,会在项目文件夹下生成一个Debug/Release文件夹,在该文件夹下面可以找到.obj文件、.exe文件等。.def文件指示连接程序如何产生最终的可执行文件.Win32 基本原理1. Wi 阅读全文
posted @ 2009-09-05 22:35 做个不善的人 阅读(2424) 评论(0) 推荐(0)
 
摘要: A module-definition (.def) file is a text file containing one or more module statements that describe various attributes of a DLL. If you are not using the __declspec(dllexport) keyword to export the DLL's functions, the DLL requires a .def file.A minimal .def file must contain the following mod 阅读全文
posted @ 2009-09-05 17:53 做个不善的人 阅读(1407) 评论(1) 推荐(1)
 
摘要: 1. _stdcall是指被调用的函数会在返回调用者时自行负责将参数等从栈中移除。所有的Win32 API都是使用这个调用约定的,带有变参的函数还是使用_cdecl。Windows使用_stdcall是因为这种约定可以减少代码大小,而且早期Windows是运行在640KB内存的机器上的。2. CoCreateInstance:使用指定的clsid创建一个未初始化的COM对象。Call CoCreateInstance when you want to create only one object on the local system. To create a single object on 阅读全文
posted @ 2009-09-05 16:52 做个不善的人 阅读(969) 评论(0) 推荐(0)
 

2009年9月1日

摘要: Character Classes一个character class表示一组用于匹配输入字符串的字符集合。[character_group](Positive character group.) Matches any character in the specified character group. 例如,[1ert]将会匹配这4个字符中的任何一个[^character_group](Negative character group.) Matches any character not in the specified character group.例如,[^1ert]将会匹配除这4 阅读全文
posted @ 2009-09-01 17:25 做个不善的人 阅读(357) 评论(0) 推荐(0)