IsImplementClass Example for C++ 6.0 and later
{
_bstr_t szUID;
//...Assume association has been created
//is implement enabled?
if (m_pLEADDicomNet->IsImplementClass (m_pLEADDicomNet->GethPDU()))
{
//disable it
//display old value
szUID = m_pLEADDicomNet->GetImplementClass (m_pLEADDicomNet->GethPDU());
AfxMessageBox("Implement Class Disabled: " + szUID);
m_pLEADDicomNet->SetImplementClass(m_pLEADDicomNet->GethPDU(), FALSE, szUID);
}
else
{
//enable it
m_pLEADDicomNet->SetImplementClass(m_pLEADDicomNet->GethPDU(), TRUE, UID_RT_DOSE_STORAGE);
szUID = m_pLEADDicomNet->GetImplementClass (m_pLEADDicomNet->GethPDU());
AfxMessageBox("Implement Class Enabled: " + szUID);
}
}