]> Creatis software - gdcm.git/blobdiff - Testing/dynmodule.cxx
Fix P vs p :-(
[gdcm.git] / Testing / dynmodule.cxx
index 2c9a664d51cea22e0338b3c9ac45df396c83dc1c..340180ca334383921f51f0ccd5a96b0e319a0d10 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: dynmodule.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/09/19 18:54:10 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/11/08 08:31:42 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,7 +30,8 @@ extern "C" __ELX_DLLEXPORT void afunc(void)
 
   // Create an instance of a gdcm class. This makes sure
   // that the problematic gdcm-library is linked.
-  gdcm::File *file = new gdcm::File();
+  gdcm::File *file = gdcm::File::New();
+  file->SetLoadMode(0); // To avoid warning
   
   std::cerr << "End of function afunc"  << std::endl;