NetReceiveCGetResponse Example for C++ 6.0 and later

void CDicomNetSink::OnNetReceiveCGetResponse (long hNet, short nPresentationID, short nMessageID, LPCTSTR pszClass, long nStatus, short nRemaining, short nCompleted, short nFailed, short nWarning, long hDS) 
{
   //1. A connection exists between client and server
   //2. An association exists between the client and server


   CString strMsg;
   _bstr_t strPeerAddress = m_pDlg->m_pLEADDicomNet->GetPeerAddress (hNet);
   strMsg.Format("*** OnNetReceiveCGetResponse ***\nPeer[%s]\nnPresentationID[%d]\nnMessageID[%d]\npszClass[%s]\nnStatus[%d]\nnRemaining[%d],nCompleted[%d]\nnFailed[%d]\nnWarning[%d]\nhDS[%x]", 
                  (char *)strPeerAddress,
                  nPresentationID, 
                  nMessageID, 
                  pszClass,
                  nStatus, 
                  nRemaining,
                  nCompleted, 
                  nFailed, 
                  nWarning, 
                  hDS
                 );
   AfxMessageBox(strMsg);
}