2004-11-09 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
- * src/gdcmDicomDir.h : bug fix for the last Boix's commit (problem when
+ * src/TestAllReadCompareDicom.cxx : test the existence of the directory
+ using an 'ifstream' other than a 'FILE *'. The previous solution ('FILE *')
+ break under windows (with msvc6 compilation).
+
+2004-11-09 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+ * src/gdcmDicomDir.h : bug fix for the last Boix's commit (problem when
compiling with MSVC6)
2004-11-09 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
std::string baseLineDir = GDCM_DATA_ROOT;
baseLineDir += "/BaselineDicom/";
- FILE* testFILE = fopen( baseLineDir.c_str(), "r" );
+ std::ifstream* testDIR = new std::ifstream(baseLineDir.c_str(), std::ios::in | std::ios::binary);
+ if (!testDIR )
+ {
+ std::cerr << " The reference baseline directory " << std::endl
+ << " "
+ << baseLineDir << std::endl
+ << " couldn't be opened."
+ << std::endl;
+ return 1;
+ }
+ else
+ {
+ testDIR->close();
+ }
+
+/* FILE* testFILE = fopen( baseLineDir.c_str(), "r" );
if (!testFILE )
{
std::cerr << " The reference baseline directory " << std::endl
else
{
fclose( testFILE );
- }
+ }*/
////// Step 1 (see above description):