NetReceiveReleaseRequest Example for C++ 6.0 or later

void CDicomNetSink::OnNetReceiveReleaseRequest(long hNet) 
{
   CString strMsg;
   _bstr_t strPeerAddress = m_pDlg->m_pLEADDicomNet->GetPeerAddress (hNet);
   strMsg.Format("*** ReceiveReleaseRequest Event ***\nPeer[%s]",(char *)strPeerAddress);  
   m_pDlg->m_pLEADDicomNet->SendReleaseResponse(hNet);
   AfxMessageBox(strMsg);
}