DeleteUID Example for C++ 6.0 and later
CString szCode;
short nRet;
szCode = "1.2.840.10008.1.2";
//move to the selected UID
BSTR bstr = szCode.AllocSysString();
m_pLEADDicomDS->FindUID(bstr);
SysFreeString(bstr);
//delete it
nRet = m_pLEADDicomDS->DeleteUID();
if(nRet != 0)
{
AfxMessageBox("Error");
return;
}