gpt4 book ai didi

c++ - 初始化 COM C++ 服务多线程的正确方法

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:47:20 25 4
gpt4 key购买 nike

在 CoInitializeEx 调用中使用带有 COINIT_MULTITHREADED 标志的 COINIT_DISABLE_OLE1DDE 有任何影响:

CoInitializeEx(0, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE ); 

最佳答案

这里有一段话 from MSDN :

In addition to the flags already mentioned, it is a good idea to set the COINIT_DISABLE_OLE1DDE flag in the dwCoInit parameter. Setting this flag avoids some overhead associated with Object Linking and Embedding (OLE) 1.0, an obsolete technology.

关于c++ - 初始化 COM C++ 服务多线程的正确方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20404500/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com