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