InsertModule Example for C++ 6.0 and later
short nRet;
IDicomDSModulePtr pCurrentModule=NULL;
IDicomIODItemPtr pCurrentIOD=NULL;
m_pLEADDicomDS->EnableMethodErrors = FALSE;
m_pLEADDicomDS->GetInfoDS ();
nRet = m_pLEADDicomDS->InsertModule (DICOM_MODULE_LUT_IDENTIFICATION, TRUE);
if(nRet != 0)
AfxMessageBox("Error Inserting Module!");
else
{
pCurrentModule = m_pLEADDicomDS->GetCurrentModule();
nRet = m_pLEADDicomDS->FindModuleIOD (m_pLEADDicomDS->GetInfoClass(), pCurrentModule->GetModule());
pCurrentIOD = m_pLEADDicomDS->GetCurrentIOD ();
AfxMessageBox("Inserted Module " + pCurrentIOD->GetName());
}