]> Creatis software - gdcm.git/blobdiff - Example/PrintDocument.cxx
ENH: Should fix installation of gdcm
[gdcm.git] / Example / PrintDocument.cxx
index efb7eca4eccb7324abe50e593da1e036842226cb..fdce422fb04bd84f7b623287c7fed54f2f74627a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PrintDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/03 15:36:01 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2005/07/19 15:19:25 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -19,6 +19,7 @@
 #include "gdcmDebug.h"
 
 #include <iostream>
+#include <stdlib.h> //for atoi
 
 int main(int argc, char *argv[])
 {
@@ -54,7 +55,8 @@ int main(int argc, char *argv[])
 
    if (argc > 4)
       e1->SetLoadMode(NO_SEQ | NO_SHADOW);
-   e1->Load( fileName.c_str() );
+   e1->SetFileName( fileName.c_str() );
+   e1->Load( );
 
 // we use PrintDocument, because we want to print what we get