InsertDS Example for C++ 6.0 or later
//find the first PATIENT KEY, copy it to a new
//DS, and then save it to a file
m_pLEADDicomDS->FindFirstKey ("PATIENT", FALSE);
m_pLEADDicomDS2->ResetDS ();
IDicomDSElementPtr pCurrentElement = m_pLEADDicomDS->GetCurrentElement ();
m_pLEADDicomDS2->InsertDS(m_pLEADDicomDS->GethDicomDS(), pCurrentElement->GethElement());
m_pLEADDicomDS2->SaveDS ("d:\\temp\\save.dic", 0);