X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestCopyDicom.cxx;h=2edc47f8597b8a04dc85164c64c009ea80af353e;hb=797e905addc2b56fc1c463ee0156b5e5ad58e6e3;hp=bfc92b8a0279605f9e68a4332c56080e1f66e70b;hpb=9bc08a72beb8acf114c306262e06386e75f7b967;p=gdcm.git diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index bfc92b8a..2edc47f8 100644 --- a/Example/TestCopyDicom.cxx +++ b/Example/TestCopyDicom.cxx @@ -6,6 +6,8 @@ #ifndef _WIN32 #include //for access, unlink +#else +#include //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(d) ) { copy->GetHeader()->ReplaceOrCreateByNumber( - b->GetVoidArea(), + b->GetBinArea(), b->GetLength(), b->GetGroup(), b->GetElement(),