SetUIDName example for C++ 6.0 and later
long lIndex;
lIndex = 13;
CString szOut;
CString szName;
IDicomUIDItemPtr pCurrentUID=NULL;
//move to the selected UID
m_pLEADDicomDS->FindIndexUID (lIndex);
//change the name
m_pLEADDicomDS->SetUIDName ("New UID Name");
pCurrentUID = m_pLEADDicomDS->GetCurrentUID ();
BSTR bstr = pCurrentUID->GetName();
szName = bstr;
SysFreeString(bstr);
szOut = "New Name = " + szName;
AfxMessageBox(szOut);