views:

225

answers:

1
  • Without:
    • MFC
    • ATL

Question:

+1  A: 

I think this page covers it rather well. Call RegisterInterfaceInGlobal to put your COM interface in the GIT, pass its cookie to your other threads, which can then call GetInterfaceFromGlobal using that cookie to get the original interface.

Note that each thread has to call CoCreateInstance(CLSID_StdGlobalInterfaceTable... but don't worry, they all get an interface pointer to the same instance of the GIT.

Martin
@Martin: Thanks Martin :)
Aaron