开发者

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

开发者 https://www.devze.com 2023-01-15 14:31 出处:网络
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 re

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

精彩评论

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

关注公众号