22 std::cerr <<
"ERROR: unable to load library " <<
fileName<<
". Reason: " << GetLastError() << std::endl;
61 return reinterpret_cast<T>(GetProcAddress(
handle, funcName));
bool load(const wchar_t *filename)
Definition: LibraryLoader.h:43
LibraryLoader()
Definition: LibraryLoader.h:18
LibraryLoader(HMODULE h)
Definition: LibraryLoader.h:24
HMODULE handle
Definition: LibraryLoader.h:16
Core::PropertyText filename
Definition: CoreDocument.h:176
bool valid() const
Definition: LibraryLoader.h:42
Definition: LibraryLoader.h:13
T resolve(const char *funcName)
Definition: LibraryLoader.h:59
LibraryLoader & operator=(LibraryLoader &&ll)
Definition: LibraryLoader.h:26
~LibraryLoader()
Definition: LibraryLoader.h:33
LibraryLoader(const wchar_t *fileName)
Definition: LibraryLoader.h:19
Base::String fileName
Definition: CoreDocument.h:186
void free()
Definition: LibraryLoader.h:50
LibraryLoader(LibraryLoader &&ll)
Definition: LibraryLoader.h:25