SaveDS Example for C++Builder
int nRet;
/* save a Data Set */
LEADDicom1->EnableMethodErrors = false;
SaveDialog1->Filter = "DICOM Data Set|*.dic";
if(SaveDialog1->Execute() && (SaveDialog1->FileName != ""))
{
nRet = LEADDicom1->SaveDS(SaveDialog1->FileName, 0);
if(nRet != SUCCESS)
ShowMessage("Error " + IntToStr(nRet) + " Saving file " + SaveDialog1->FileName);
}
LEADDicom1->EnableMethodErrors = true;