NetReceiveAssociateReject Example for C++ 6.0 and later
void CDicomNetSink::OnNetReceiveAssociateReject ( long hNet, short nResult, short nSource, short nReason )
{
//Client receives this event
CString strMsg;
strMsg.Format("*** NetReceiveAssociateReject Event ***\nResult[%d]\nSource[%d]\nReason[%d]",
nResult, nSource, nReason);
AfxMessageBox(strMsg);
}