SendCCancelRequest Example for C++ 6.0 and later
{
//This example sends a C-Cancel Request to a server
//
//In this example:
//1. A connection exists between client and server
//2. An association exists between the client and server
CString strMsg = "N-Cancel\n";
short nPresentationID = 1; //PresentationID of message to cancel
short nMessageID = 1; //ID of message to cancel
m_pLEADDicomNet->SendCCancelRequest(m_pLEADDicomNet->GethNet(),nPresentationID, nMessageID);
AfxMessageBox(strMsg);
}