com 函数(1)
2011-08-01 21:53 Clingingboy 阅读(416) 评论(0) 收藏 举报
这些函数只做了解
1.CoGetInstanceFromFile
Creates a new object and initializes it from a file using IPersistFile::Load.
IMoniker内部的BindToOjbect会调用此函数
2.CoGetInstanceFromIStorage
Creates a new object and initializes it from a storage object through an internal call to IPersistStorage::Load.
IMoniker内部的BindToStorage会调用此函数
3.CoTreatAsClass && CoGetTreatAsClass
类模仿
Establishes or removes an emulation, in which objects of one class are treated as objects of a different class.
发现微软官方有就不写了
http://support.microsoft.com/kb/126157/zh-cn
4.组件分类
请参考com本质论 3.14章节 组件类别,已经很详细介绍