I'm wroking on a COM in-proc server using C++ in VS 2005 using only the win libraries. This is to create 3 extended property pages in Active Directory. I have a base class, CpropertyPage, which is from MS SDK for mmc's ppgext.cpp. My property pages are display as one of the tab in AD's Computer, Users and Groups property window.
The question I have is, how can I get my property sheet's destructor be called or invoked (actually I think mmc does this). I know my base class CpropertyPage's destructor is being called when I click OK button to exit the property window. I have to do some memory clean up in my own destructor and thus need each of my property sheet's destructor to be called.