DeleteModule Example for C++ 6.0 and later
short nRet;
IDicomDSModulePtr pCurrentModule=NULL;
m_pLEADDicomDS->EnableMethodErrors = FALSE;
//move to the first module in the DataSet and delete it
m_pLEADDicomDS->FindIndexModule(0);
pCurrentModule = m_pLEADDicomDS->GetCurrentModule();
nRet = m_pLEADDicomDS->DeleteModule(pCurrentModule->GetModule());
if(nRet != 0)
AfxMessageBox("Error Deleting Module!");
m_pLEADDicomDS->EnableMethodErrors = TRUE;