]> Creatis software - gdcm.git/blobdiff - Example/TestCopyDicom.cxx
ENH: Fix warnings about 'main' being used as local var... and replace tabs with two...
[gdcm.git] / Example / TestCopyDicom.cxx
index bfc92b8a0279605f9e68a4332c56080e1f66e70b..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
@@ -71,7 +73,7 @@ int main(int argc, char* argv[])
       TagDocEntryHT & Ht = original->GetHeader()->GetEntry();
 
       size_t dataSize = original->GetImageDataSize();
-      void *imageData = original->GetImageData();
+      uint8_t* imageData = original->GetImageData();
   
       //First of all copy the header field by field
   
@@ -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(),