On 6/3/06, Mikołaj Zalewski <[EMAIL PROTECTED]> wrote:
  OK, I won't insist on aggregation :). As for apartments I've thought
that something like that:
HRESULT res=CoInitializeEx(NULL, COINIT_MULTITHREADED);
/* working with objects with ThreadingModel Both */
if (SUCCEEDED(res)) CoUninitialize();

won't have any side effects.

Well, you'd be possibly changing the apartment of the current thread,
which is not allowed IIRC.

But if the number of developers that knows
about COM is low then maybe that it's better to use simple ops structs
instead.

I'd say so...

thanks -mike


Reply via email to