Creating COM objects and passing out pointers to them via a COM interface