]> Creatis software - gdcm.git/blobdiff - Testing/TestCopyDicom.cxx
ENH: Reorganize cmakelists.txt file
[gdcm.git] / Testing / TestCopyDicom.cxx
index 2a2416ec647ff0dcf76d1c379dafdc4d7e3cb229..62e1a727e9a1a68e0c51a0520786bcdf13132076 100644 (file)
@@ -9,6 +9,8 @@
 
 #ifndef _WIN32
 #include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access on Win32
 #endif
 
 // return true if the file exists
@@ -70,7 +72,7 @@ int TestCopyDicom(int , char* [])
       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
   
@@ -87,7 +89,7 @@ int TestCopyDicom(int , char* [])
          if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
          {              
             copy->GetHeader()->ReplaceOrCreateByNumber( 
-                                 b->GetVoidArea(),
+                                 b->GetBinArea(),
                                  b->GetLength(),
                                  b->GetGroup(), 
                                  b->GetElement(),