]> Creatis software - gdcm.git/blobdiff - Example/TestCopyDicom.cxx
ENH: dos2unix CMakeLists.txt to allow diffing of directory with VTK + remove tabs
[gdcm.git] / Example / TestCopyDicom.cxx
index 092e6f16c5c6f73ab933adff89fb9e9a006c8639..2edc47f8597b8a04dc85164c64c009ea80af353e 100644 (file)
@@ -6,6 +6,8 @@
 
 #ifndef _WIN32
 #include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access
 #endif
 
 // return true if the file exists
@@ -89,7 +91,7 @@ int main(int argc, char* argv[])
          if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
          {              
             copy->GetHeader()->ReplaceOrCreateByNumber( 
-                                 b->GetVoidArea(),
+                                 b->GetBinArea(),
                                  b->GetLength(),
                                  b->GetGroup(), 
                                  b->GetElement(),