08 2009 档案

 
Which thead executes an event handler ?
摘要:Using events is a common way to synchronize threaded applications. In this scenario, each thread raises an event to signal its status to the main program or other threads. Other parts of the application, outside the thread that raised the event, handle the event and process the information. NoteWhen 阅读全文
posted @ 2009-08-31 23:17 做个不善的人 阅读(182) 评论(0) 推荐(0)
Property System in WPF
摘要:DependencyObject :The base class for all objects that have dependency properties. This class must be inherited. [Represents an object that participates in the dependency property system.]DependencyObject services and characteristics include the following:Dependency property hosting support.Attached 阅读全文
posted @ 2009-08-31 16:51 做个不善的人 阅读(224) 评论(0) 推荐(0)
ref和out的区别
摘要:在C#中,既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数,可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是:1、使用ref型参数时,传入的参数必须先被初始化。对out而言,必须在方法中对其完成初始化。2、使用ref和out时,在方法的参数和执行方法时,都要加Ref或Out关键字。以满足匹配。3、out适合用在需要retrun多个返回值的地方,而ref则用在需要被调用的方法修改调用者的引用的时候。注:在C#中,方法的参数传递有四种类型:传值(by value),传 阅读全文
posted @ 2009-08-30 23:34 做个不善的人 阅读(278) 评论(0) 推荐(0)
COM thread model
摘要:In general, the simplest way to view the COM threading architecture is to think of all the COM objects in the process as divided into groups called apartments. A COM object lives in exactly one apartment, in the sense that its methods can legally be directly called only by a thread that belongs to t 阅读全文
posted @ 2009-08-30 23:26 做个不善的人 阅读(851) 评论(0) 推荐(0)
GSM/GPRS/3G/WiFi/TDMA/CDMA
摘要:GSMGSM全名为:Global System for Mobile Communications,中文为全球移动通讯系统,俗称"全球通",是一种起源于欧洲的移动通信技术标准,是第二代移动通信技术,其开发目的是让全球各地可以共同使用一个移动电话网络标准,让用户使用一部手机就能行遍全球。我国于20世纪90年代初引进采用此项技术标准,此前一直是采用蜂窝模拟移动技术,即第一代GSM技术(2001年12月31日我国关闭了模拟移动网络)。目前,中国移动、中国联通各拥有一个GSM网,为世界最大的移动通信网络。GSM使用的是时分多址的变体,并且它是目前三种数字无线电话技术(TDMA、GS 阅读全文
posted @ 2009-08-30 10:42 做个不善的人 阅读(1628) 评论(0) 推荐(0)
RTP/RTCP/RTSP/SIP/SDP
摘要:RTPsdfsReal-time Transport Protocol)是用于Internet上针对多媒体数据流的一种传输层协议。RTP协议详细说明了在互联网上传递音频和视频的标准数据包格式。RTP协议常用于流媒体系统(配合RTCP协议),视频会议和一键通(Push to Talk)系统(配合H.323或SIP),使它成为IP电话产业的技术基础。RTP协议和RTP控制协议RTCP一起使用,而且它是建立在UDP协议上的。RTP 本身并没有提供按时发送机制或其它服务质量(QoS)保证,它依赖于低层服务去实现这一过程。 RTP 并不保证传送或防止无序传送,也不确定底层网络的可靠性。 RTP 实行有序 阅读全文
posted @ 2009-08-30 09:49 做个不善的人 阅读(15404) 评论(0) 推荐(1)
Assembly.Load,LoadFile,LoadFrom
摘要:在加载Assembly的时候有三种Load Context可以选择:Load Context通常来说,当通过探测 GAC,host assembly store (if hosted), 或者 the ApplicationBase / PrivateBinPaths of the AppDomain来找到指定的Assembly时,被加载到Load Context中。LoadFrom Contex... 阅读全文
posted @ 2009-08-29 18:17 做个不善的人 阅读(1275) 评论(0) 推荐(0)
BindingFlags
摘要:BindingFlagsThese BindingFlags control binding for a great many classes in the System, System.Reflection, and System.Runtime namespaces that invoke, create, get, set, and find members and types.The binding flags can be categorized by how they identify a type member, as listed in the following table. 阅读全文
posted @ 2009-08-28 18:37 做个不善的人 阅读(456) 评论(0) 推荐(0)
UI Automation in WPF/Silverlight
摘要:ConceptsPeer: 每个Control类有一个Peer类,这个Peer类expose其对应的Control给UI Automation. Each AutomationPeer exposes the corresponding Microsoft .NET Framework control to Microsoft UI Automation.Control Pattern:Control patterns provide a way to categorize and expose a control's functionality independent of the 阅读全文
posted @ 2009-08-27 16:06 做个不善的人 阅读(1011) 评论(0) 推荐(0)
Silverlight AV
摘要:VideoRaw VideoYV12 - YCrCb(4:2:0)RGBA - 32 bit Alpha Red, Green, BlueWMV1: Windows Media Video 7WMV2: Windows Media Video 8WMV3: Windows Media Video 9Supports Simple and Main Profiles.Supports only progressive (non-interlaced) content.WMVA: Windows Media Video Advanced Profile, non-VC-1WVC1: Windows 阅读全文
posted @ 2009-08-21 17:12 做个不善的人 阅读(97429) 评论(0) 推荐(0)
VC1 and H.264
摘要:GoalsVC1 is designed to offer very high image quality with excellent compression efficiencyH.264/MPEG-4 AVC isdesigned to meet a variety of industry needs with many profiles and levels, allowing for varying compression, quality and CPU usage levels, where the lowest level is for portable devices, de 阅读全文
posted @ 2009-08-21 16:28 做个不善的人 阅读(907) 评论(0) 推荐(0)
What Is WSH?
摘要:Windows Script Host (WSH) is a Windows administration tool.WSH creates an environment for hosting scripts. That is, when a script arrives at your computer, WSH plays the part of the host — it makes objects and services available for the script and provides a set of guidelines within which the script 阅读全文
posted @ 2009-08-13 10:20 做个不善的人 阅读(207) 评论(0) 推荐(0)
Windows Script Files (.wsf)
摘要:A Windows script (*.wsf) file is a text document containing Extensible Markup Language (XML) code. It incorporates several features that offer you increased scripting flexibility. Because Windows script files are not engine-specific, they can contain script from any Windows Script compatible scripti 阅读全文
posted @ 2009-08-12 18:58 做个不善的人 阅读(851) 评论(0) 推荐(0)
Expression in C#
摘要:The System.Linq.Expressions namespace contains classes, interfaces and enumerations that enable language-level code expressions to be represented as objects in the form of expression trees. 也就是使用该命名空间中的类可以将一段代码表示为对象。在System.Linq.Expressions中,列举了很多种的表达式,其中包括:BinaryExpression,ConditionalExpression,Con 阅读全文
posted @ 2009-08-12 17:36 做个不善的人 阅读(9706) 评论(1) 推荐(2)
UserAgent的历史变迁(zz)
摘要:Google推出的Chrome让大家热议纷纷,只有专业用户才会注意到用Chrome访问网页时发出的“Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13”UserAgent字符串,貌似天书,它到底是怎么回事儿代表什么呢?我们来看看吧:最早的时候有一个浏览器叫NCSA Mosaic,把自己标称为NCSA_Mosaic/2.0 (Windows 3.1),它支持文字显示的同时还支持图片,于是Web开始好玩起来。然后出 阅读全文
posted @ 2009-08-12 13:07 做个不善的人 阅读(444) 评论(0) 推荐(0)
Understanding User-Agent Strings
摘要:IntroductionWhen you visit a Web page, your browser sends the user-agent string to the server hosting the site that you are visiting. This string indicates which browser you are using, its version number, and details about your system, such as operating system and version. The Web server can use thi 阅读全文
posted @ 2009-08-12 10:13 做个不善的人 阅读(958) 评论(0) 推荐(0)
Precompiled header
摘要:In computer programming, a pre-compiled header is a technique used by some C or C++ compilers to reduce compilation time.In the C and C++ programming languages, a header file is a file whose text may be automatically included in another source file by the compiler, usually specified by the use of co 阅读全文
posted @ 2009-08-10 12:45 做个不善的人 阅读(2625) 评论(0) 推荐(0)
const 与指针(zz)
摘要:1. 指向const对象的指针到目前位置,我们使用指针来修改其所指对象的值.但是如果指针指向const对象,则不允许用指针来改变其所指的const值.为了保证这个特性,C++语言强制要求指向const对象的指针也必须具有const特性:const double *cptr; //cptr may point to a double that is const这里的cptr是一个指向double类型的const对象的指针,const限定了cptr指针所指向的对象类型,而并非cptr本身,也就是说,cptr本身并不是const.在定义时不需要对它进行初始化,如果需要的话,允许给cptr重新赋值,使 阅读全文
posted @ 2009-08-10 10:42 做个不善的人 阅读(1585) 评论(0) 推荐(0)
Casting Operators
摘要:There are several casting operators specific to the C++ language. These operators are intended to remove some of the ambiguity and danger inherent in old style C language casts. These operators are: dynamic_cast: Used for conversion of polymorphic types.static_cast: Used for conversion of nonpolymor 阅读全文
posted @ 2009-08-09 12:21 做个不善的人 阅读(648) 评论(0) 推荐(0)
Timer in C# (2)
摘要:System.Windows.Threading.DispatcherTimerA timer that is integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority. The DispatcherTimer is reevaluated at the top of every Dispatcher loop.Timers are not guaranteed to execute exactly when the ti 阅读全文
posted @ 2009-08-07 16:51 做个不善的人 阅读(372) 评论(0) 推荐(0)
Timer in C#(1)
摘要:There are 3 different Timers in C# System.Windows.Forms.Timer System.Threading.Timer System.Timers.Timer I will introduce them separately 1. System.Windows.Forms.Timer A Timer is used to raise an eve... 阅读全文
posted @ 2009-08-07 16:39 做个不善的人 阅读(1079) 评论(0) 推荐(0)
JavaScript Object Notation (JSON)
摘要:JSON, short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects).The JSON format is often used for serialization, transmitting structured data over 阅读全文
posted @ 2009-08-07 13:32 做个不善的人 阅读(784) 评论(0) 推荐(0)
Cross-Domain Network connection in Silverlight
摘要:Basics:1. Before allowing a connection to a network resource, the Silverlight runtime will try to download a security policy file from the domain that hosts the network resource. There are two different methods used to download the security policy that depend on whether the connection request was fr 阅读全文
posted @ 2009-08-07 13:08 做个不善的人 阅读(580) 评论(0) 推荐(0)
DllMain Callback Function
摘要:跟exe有个main或者WinMain入口函数一样,DLL也有一个入口函数,就是DllMain。An optional entry point into a dynamic-link library (DLL). When the system starts or terminates a process or thread, it calls the entry-point function for each loaded DLL using the first thread of the process. The system also calls the entry-point func 阅读全文
posted @ 2009-08-06 16:42 做个不善的人 阅读(619) 评论(0) 推荐(0)