DECLARE_PROTECT_FINAL_CONSTRUCT( )
Remarks
Protects your object from being deleted if (during FinalConstruct) the internal aggregated object increments the reference count then decrements the count to 0.
ATL Macros and Global Functions