What is the preferred method of marshalling COM interfaces across threads?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 08:23:28

From MSDN:

If you are unmarshaling an interface pointer multiple times between apartments in a process, you might use the IGlobalInterfaceTable interface. With other techniques, you would have to remarshal each time.

Besides that, I would say it's mostly a matter of preference.

You need a copy of Essential COM by Bon Box, when I used to work with COM, I would reach for Don's book whenever I had this sort of question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!