19 #ifndef COIL_DYNAMICLIB_H 20 #define COIL_DYNAMICLIB_H 27 #define COIL_DEFAULT_DYNLIB_MODE LOAD_WITH_ALTERED_SEARCH_PATH 32 #ifdef TEST_DYNAMIC_LIB 33 # define DynamicLib_EXPORT __declspec(dllexport) 35 # define DynamicLib_EXPORT __declspec(dllimport) 81 DynamicLib(
int close_handle_on_destruction = 1);
108 int close_handle_on_destruction = 1);
201 virtual int open(
const char* dll_name,
203 int close_handle_on_destruction = 1);
224 virtual int close(
void);
249 void *
symbol (
const char* symbol_name);
270 const char*
error(
void)
const;
292 std::cout<<
"ForExternTest"<<std::endl;
307 #endif // DynamicLib_h
static int ForExternTest(void)
Unit Test.
DynamicLib_EXPORT int ForExternTest(void)
const char * error(void) const
Return the explanation message about the error.
void * symbol(const char *symbol_name)
Return an address of the memory where a symbol was loaded.
DynamicLib & operator=(const DynamicLib &rhs)
Assignment operator.
#define DynamicLib_EXPORT
DynamicLib(int close_handle_on_destruction=1)
Constructor.
virtual ~DynamicLib()
Destructor.
#define COIL_DEFAULT_DYNLIB_MODE
virtual int close(void)
Unload of the Dynamic link library.
virtual int open(const char *dll_name, int open_mode=COIL_DEFAULT_DYNLIB_MODE, int close_handle_on_destruction=1)
Load of the Dynamic link library.
Common Object Interface Layer.