NetSend Example for C++ 6.0 and later

void CDicomNetSink::OnNetSend(long hNet, long nStatus, short nType, long lBytes) 
{
   CString strMsg;
   _bstr_t strPeerAddress = m_pDlg->m_pLEADDicomNet->GetPeerAddress (hNet);
   strMsg.Format("*** NetSend Event ***\nData Sent to [%s]\nStatus [%d]", 
                  (char *)strPeerAddress,
                  nStatus);
   AfxMessageBox(strMsg);
}