GetInfoDS Example for C++ 6.0 and later
CString szClass;
CString szFlags;
short nRet;
IDicomIODItemPtr pIOD=NULL;
CString szOut;
m_pLEADDicomDS->EnableMethodErrors = FALSE;
m_pLEADDicomDS->GetInfoDS();
nRet = m_pLEADDicomDS->FindClassIOD(m_pLEADDicomDS->GetInfoClass());
if(nRet != 0)
{
AfxMessageBox("Error");
return;
}
pIOD = m_pLEADDicomDS->GetCurrentIOD();
BSTR bstr = pIOD->GetName();
szClass = bstr;
SysFreeString(bstr);
szFlags.Format("%X", m_pLEADDicomDS->GetInfoFlags());
szOut.Format("Class: %s\nFlags: %s", szClass, szFlags);
AfxMessageBox(szOut);