DcmDataset *dataset; DcmFileFormat fileformat; OFCondition status = fileformat.loadFile(filename.toAscii().data(), readXfer, groupLength, maxReadLength, readMode); dataset = fileformat.getAndRemoveDataset();if(!status.good()) { qDebug() <<"Could not load "<< filename <<"\nDCMTK says...
Thepdf2dcmutility will attempt to load DICOM data dictionaries specified in theDCMDICTPATHenvironment variable. By default, i.e. if theDCMDICTPATHenvironment variable is not set, the file<datadir>/dicom.dicwill be loaded unless the dictionary is built into the application (default for Windows)....