IObjectControl::Deactivate Method Example

#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();
}