SaveDS Example for C++ 6.0 and later
short nRet;
CFileDialog SaveDlg(FALSE);
//save a Data Set
m_pLEADDicomDS->EnableMethodErrors = FALSE;
if(SaveDlg.DoModal()==IDOK)
{
BSTR bstr = SaveDlg.GetFileName().AllocSysString();
nRet = m_pLEADDicomDS->SaveDS (bstr, 0);
SysFreeString(bstr);
if(nRet != DICOM_SUCCESS)
AfxMessageBox("Error saving file!");
}
m_pLEADDicomDS->EnableMethodErrors = TRUE;