FindModule Example for C++ 6.0 and later
short nRet;
IDicomIODItemPtr pCurrentIOD=NULL;
m_pLEADDicomDS->EnableMethodErrors = FALSE;
nRet = m_pLEADDicomDS->FindModule(DICOM_MODULE_NM_TOMO_ACQUISITION);
if(nRet != 0)
AfxMessageBox("Not Found");
else
{
m_pLEADDicomDS->GetInfoDS();
m_pLEADDicomDS->FindModuleIOD(m_pLEADDicomDS->GetInfoClass(), DICOM_MODULE_NM_TOMO_ACQUISITION);
pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD();
AfxMessageBox("Found Module " + pCurrentIOD->GetName());
}
m_pLEADDicomDS->EnableMethodErrors = TRUE;