main_thread() { // create connection point // save COM pointers in a map // wait on a lock // call fn1() which uses the map of COM pointers } connection_point_callback() { // initialize COM with CoInitialize // call fn1() which uses the map of COM pointers // release the lock }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)