5#include "../global.hpp"
6#include "../string.hpp"
8#include "detail_dyn_loader.hpp"
23 inline DynLoader::DynLoader(
const String &name)
25 auto fileName = name + CVB_LIT(
".dll");
26 handle_ = LoadLibrary(fileName.c_str());
28 throw std::runtime_error(
"failed to load module");
31 inline DynLoader::~DynLoader()
33 FreeLibrary(
reinterpret_cast<HMODULE
>(handle_));
36 inline void *DynLoader::LoadSymbol(
const String &name)
noexcept
38 std::string cname(Internal::CastToAscii(name));
39 return GetProcAddress(
reinterpret_cast<HMODULE
>(handle_), cname.c_str());
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49