SendData Example for C++ 6.0 or later
{
//send a command set, then a data set
m_pLEADDicomDS2->InitCS (COMMAND_C_STORE, TRUE);
m_pLEADDicomDS->InitDS (DICOM_CLASS_CR_IMAGE_STORAGE, 0);
//client is sending data
m_pLEADDicomNet->SendData(m_pLEADDicomNet->GethNet(), TRUE, 1, m_pLEADDicomDS2->GethDicomDS()); //the command set
m_pLEADDicomNet->SendData(m_pLEADDicomNet->GethNet(), FALSE, 1, m_pLEADDicomDS->GethDicomDS()); //the data set
}