I've created a COM class within an exe server. It's designed to be a singleton. It basically gets instantiated once, and then it keeps tabs on various events occurring on the machine. Also, other COM classes, which are loaded via DLL into another process, communicate with it every now and then.
I've read that DECLARE_CLASSFACTORY_SINGLETON/CComClassFactorySingleton are bad and should not be used.
My question is whether RegisterActiveObject/GetActiveObject is a suitable alternative API for this set up. And if not, is there something else I should be using? Thanks for any guidance.