1 /*=========================================================================
4 Module: $RCSfile: dynmodule.cxx,v $
6 Date: $Date: 2005/11/08 08:31:42 $
7 Version: $Revision: 1.3 $
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.
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.
17 =========================================================================*/
22 # define __ELX_DLLEXPORT __declspec(dllexport)
24 # define __ELX_DLLEXPORT
27 extern "C" __ELX_DLLEXPORT void afunc(void)
29 std::cerr << "Hello, we are in the dll-function afunc!" << std::endl;
31 // Create an instance of a gdcm class. This makes sure
32 // that the problematic gdcm-library is linked.
33 gdcm::File *file = gdcm::File::New();
34 file->SetLoadMode(0); // To avoid warning
36 std::cerr << "End of function afunc" << std::endl;