help!!
I follow the example in the forum, but find some of the Dicom files can not be added to DicomDirInterface.
By the way, they can be done with other tools!
look my code, is there any mistake?
DicomDirInterface ddir;
ddir.enableAbortMode(OFFalse);
OFCondition result;
result = ddir.createNewDicomDir( DicomDirInterface::AP_GeneralPurpose,"C:\\myDIR\\DICOMDIR");
if (result.bad())
return;
result = ddir.setFilesetDescriptor("DICOMDIR");
//find file
CString str = gstrDir + "\\*";
CFileFind file;
BOOL bContinue = file.FindFile(str);
while(bContinue)
{
bContinue = file.FindNextFile();
str = file.GetFileName();
result = ddir.addDicomFile(str.GetBuffer(str.GetLength()), gstrDir);
if (result.bad())
{
// MessageBox("No");
}
}
result = ddir.writeDicomDir(EET_ExplicitLength, EGL_withGL);
Why some of my Dicom files can not Add to DICOMDIR??
Moderator: Moderator Team
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
error msg:
Error: JPEG compression not supported: 1356405
dcmgpdir: error: no good files: DICOMDIR not created
dcmgpdir: error: no good files: DICOMDIR not created
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Who is online
Users browsing this forum: No registered users and 1 guest