Version Example for C++ 6.0 and later
{
CString strMsg;
//create the Associate Class as Request
m_pLEADDicomNet->CreateAssociate (TRUE);
//set the Associate to the default
m_pLEADDicomNet->DefaultAssociate (m_pLEADDicomNet->GethPDU());
//check the Associate Class version
strMsg.Format("Version[%d]", m_pLEADDicomNet->GetVersion (m_pLEADDicomNet->GethPDU()) );
AfxMessageBox(strMsg);
//set the version
m_pLEADDicomNet->SetVersion (m_pLEADDicomNet->GethPDU(), 99);
strMsg.Format("Version[%d]", m_pLEADDicomNet->GetVersion (m_pLEADDicomNet->GethPDU()) );
AfxMessageBox(strMsg);
//Free associate
m_pLEADDicomNet->FreeAssociate (m_pLEADDicomNet->GethPDU());
}