Platform SDK: Transaction Server |
IObjectControl::Deactivate Method Example
[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]
#include <mtx.h> void MyObject::Deactivate(void) { // This object is no longer associated with this // context, so release the reference it acquired in // its Activate method. m_pObjectContext->Release(); }