views:

38

answers:

1

Are CoInitialize(NULL) and CoUninitialize() automatically called by ATL?

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

A: 

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

rodi