股票数据格式 外汇交易系统 MT4编程 电子海图开发(S52 S57) AIS

http://alantop.5166.info

股票数据格式 外汇交易系统 MT4编程 电子海图开发(S52 S57) AIS
随笔 - 233, 文章 - 1, 评论 - 383, 引用 - 0
数据加载中……

com中的列集

列集: 为了将一个接口指针从一个线程传递到同一进程内的另一个线程中。

用到的两个函数:CoMarshalInterface和CoUnmarshalInterface.

CoMarshalInterface

Writes into a stream the data required to initialize a proxy object in some client process. The COM library in the client process calls the CoUnmarshalInterface function to extract the data and initialize the proxy. Before calling CoUnmarshalInterface, seek back to the original position in the stream. CoMarshalInterface can marshal only interfaces derived from IUnknown.

CoUnmarshalInterface

Initializes a newly created proxy using data written into the stream by a previous call to the CoMarshalInterface function, and returns an interface pointer to that proxy.


列集可以通过函数CoMarshalInterface函数来完成,当调用CoMarshalInterface第一次为对象进行列集时会为对象建立一个存根管理器,而以后对同一个对象的其他接口列集时,就不会再建一个存根管理器.

进程具有一个或者多个套间,任何一个线程在某一时刻只能在一个套间种运行。
每个COM对象只能属于一个套间。为了使每个套间之间能够进行通信。
COM支持跨套间边界的对象引用列集机制。

posted on 2006-04-29 02:51 AlanTop 阅读(254) 评论(0)  编辑 收藏 引用


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]




股票数据格式 外汇交易系统 MT4编程 电子海图开发(S52 S57) AIS