
COM
albertliangyg
这个作者很懒,什么都没留下…
展开
-
Apartment之COM中的线程模型
An apartment is a set of threading rules sharedby a group of objects。The three types of apartments aresingle-threaded apartments (STAs), neutral apartments (NAs), and multithreadedapartments (MTAs).原创 2012-12-23 21:21:41 · 1263 阅读 · 0 评论 -
服务器端编程之如何开发IDispatch接口的实现类
首先需要决定的是是否使用type infomation?那些简化IDispatch实现的helper method需要使用类型信息。IDispatch接口的四个方法从客户端的角度来看是关联的。 1. IDispatch::GetTypeInfoCount IDispatch::GetTypeInfoCount function is called b原创 2012-12-08 16:46:53 · 1673 阅读 · 3 评论 -
Type Library
Type Library:A typelib stores information about a COM object: The classid, the interfaces that the object supports, the methods on those interfaces, and so on just about everything you'd find in an原创 2012-12-21 17:10:52 · 994 阅读 · 0 评论 -
多态的实现
1) 理解如何通过virtual fuction table指向正确的方法;Typically, the compiler creates a separate vtable for each class. When an object is created, a pointer to this vtable, called thevirtual table pointer, vpoint原创 2012-12-17 18:54:17 · 372 阅读 · 1 评论 -
ATL
CComObjectRootEx is the essential ATL class. It provides the default table-drivenQueryInterface mechanism and is a required part of every ATL object. TheCComCoClass class defines the default class fac原创 2012-12-24 10:24:09 · 467 阅读 · 4 评论 -
Outlook Note
以Outlook object model or PIA为例COM Add-ins一般使用Outlook object model.托管代码使用PIA或者通过COM interoperability layer使用outlook object model.Explorer: Represents the window in which the contents of原创 2012-12-07 22:48:13 · 946 阅读 · 2 评论 -
COM
客户端通过custom interface 来使用COM服务(摘自Inside COM):可以概括为获取(acquire),使用(use),释放(release)三步void UseSpellChecker(ISpellChecker* pSpellChecker) { pSpellChecker->CheckIt(); ISpellChecker2* pSpellCh原创 2012-12-06 10:37:08 · 538 阅读 · 7 评论