开发者

Do I still need to call CoInitialize(NULL) and CoUninitialize() if I switch to ATL?

Are CoInitialize(NULL) and CoUninitialize() automatically 开发者_Go百科called by ATL?

Or I still have to call CoInitialize(NULL) and CoUninitialize() at the beginning and end of my COM application respectively?


In fact you have to call these in every thread in which you want to use COM calls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜