Thread: three questions about CoInitialize/CoUninitialize

  1. #1
    Registered User
    Join Date
    May 2006

    three questions about CoInitialize/CoUninitialize

    Hello everyone,

    Am I correct for the understanding of the following three questions about CoInitialize/CoUninitialize?


    For each thread which utilizes COM, we need to call CoInitialize/CoUninitialize. Not for each process.


    There is no harm to call CoUninitialize even if we do not call CoInitialize? And if we call CoInitialize N times on a thread, we need to call CoUninitialize the same of times (N times, not only 1 time) on a thread to release all resources?


    CoInitializeEx will invoke CoInitialize?

    thanks in advance,

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM