Unique COM Object
ATL / WTL / STL
4
Posts
3
Posters
2
Views
1
Watching
-
By default, class factory create a new object for every request, this is not good when a application that should using a COM object as global var. I don't understand ATL deep, so how to modify class factory of special COM object?
Follow the thread of
DECLARE_CLASSFACTORY_SINGLETON
through the documentation. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
Follow the thread of
DECLARE_CLASSFACTORY_SINGLETON
through the documentation. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
By default, class factory create a new object for every request, this is not good when a application that should using a COM object as global var. I don't understand ATL deep, so how to modify class factory of special COM object?