NetReceiveUnknown Example for C++ 6.0 or later

void CDicomNetSink::OnNetReceiveUnknown (long hNet, short nPresentationID, long hCS, long hDS) 
{
   //In this example, the server receives an unknown request from the client
   //
   //In this example:
   //1. A connection exists between client and server
   //2. An association exists between the client and server

   _bstr_t strPeerAddress = m_pDlg->m_pLEADDicomNet->GetPeerAddress (hNet);
   CString strMsg;   
   
   strMsg.Format("*** OnNetReceiveUnknown ***\nPeer[%s]\nhNet[%x]\nnPresentationID[%d]\nnpCS[%x]\npDS[%x]", 
      (char *)strPeerAddress,
      hNet,
      nPresentationID, 
      hCS, 
      hDS);
   AfxMessageBox(strMsg);
}