00001 #pragma once 00002 00003 //////////////////////////////////////////////////////////////////////////////// 00004 /// 00005 /// \file 00006 /// \author Gerald Fahrnholz 00007 /// 00008 /// \defgroup GrpExampleDll ExampleDll 00009 /// @{ 00010 /// \ingroup GrpTestEnvWithMultipleDlls 00011 /// \brief 00012 /// "ExampleDll.dll" is a simple Win32 DLL that demonstrates the usage of some of the test 00013 /// utilities from within a DLL. 00014 /// 00015 /// 00016 /// The exported methods AccessEnvironmentWithinExampleDll() and AccessTestEventsWithinExampleDll() 00017 /// atre called from the main test aplication TestEnvWithMultipleDlls. 00018 /// 00019 /// \sa ExampleDll.h (File documentation) 00020 /// \sa GrpTestEnvWithMultipleDlls (test app) 00021 /// 00022 //////////////////////////////////////////////////////////////////////////////// 00023 00024 /// \cond 00025 00026 #ifdef EXAMPLEDLL_EXPORTS 00027 #define EXAMPLE_DLL_API __declspec(dllexport) 00028 #else 00029 #define EXAMPLE_DLL_API __declspec(dllimport) 00030 #ifdef NDEBUG 00031 #pragma comment( lib, "ExampleDll" ) 00032 #else 00033 #pragma comment( lib, "ExampleDllD" ) 00034 #endif 00035 #endif 00036 00037 00038 EXAMPLE_DLL_API 00039 void AccessEnvironmentWithinExampleDll (void); 00040 00041 EXAMPLE_DLL_API 00042 void AccessTestEventsWithinExampleDll (void); 00043 00044 /// \endcond 00045 00046 ///@} // end group GrpExampleDll