1 #include <ail/module.hpp>
7 dynamic_module::dynamic_module():
12 dynamic_module::~dynamic_module()
17 bool dynamic_module::load(std::string
const & new_path
)
19 module_handle
= ::LoadLibrary(new_path
.c_str());
20 is_loaded
= module_handle
!= 0;
26 void dynamic_module::unload()
30 ::FreeLibrary(module_handle
);
35 bool dynamic_module::get_function(std::string
const & name
, void * & output
)
40 output
= ::GetProcAddress(module_handle
, name
.c_str());