IsImplementVersion Example for C++ 6.0 and later
{
_bstr_t strVersion, strMsg;
int nRet;
//...Assume association has been created
if (m_pLEADDicomNet->IsImplementVersion (m_pLEADDicomNet->GethPDU()))
{
//disable it and display old value
strVersion = m_pLEADDicomNet->GetImplementVersion (m_pLEADDicomNet->GethPDU());
nRet = m_pLEADDicomNet->SetImplementVersion (m_pLEADDicomNet->GethPDU(), FALSE, strVersion);
strMsg = "ImplementVersion Disabled: \n" + strVersion;
AfxMessageBox(strMsg);
}
else
{
//enable it
nRet = m_pLEADDicomNet->SetImplementVersion (m_pLEADDicomNet->GethPDU(), TRUE, "v11.0");
strVersion = m_pLEADDicomNet->GetImplementVersion (m_pLEADDicomNet->GethPDU());
strMsg = "ImplementVersion Enabled: \n" + strVersion;
AfxMessageBox(strMsg);
}
}