]> Creatis software - gdcm.git/blob - Testing/dynmodule.cxx
use GDCM_NAME_SPACE:: instead of gdcm::, even in Examples ...
[gdcm.git] / Testing / dynmodule.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: dynmodule.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/09/15 15:49:21 $
7   Version:   $Revision: 1.4 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #include "gdcmFile.h"
20
21 #ifdef _WIN32
22 #  define __ELX_DLLEXPORT __declspec(dllexport)
23 #else
24 #  define __ELX_DLLEXPORT
25 #endif
26
27 extern "C" __ELX_DLLEXPORT void afunc(void)
28 {
29   std::cerr << "Hello, we are in the dll-function afunc!" << std::endl;
30
31   // Create an instance of a gdcm class. This makes sure
32   // that the problematic gdcm-library is linked.
33   GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New();
34   file->SetLoadMode(0); // To avoid warning
35   
36   std::cerr << "End of function afunc"  << std::endl; 
37   
38 }
39
40