7 #ifndef MYGUI_DYNLIB_H_
8 #define MYGUI_DYNLIB_H_
14 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
15 # define MYGUI_DYNLIB_HANDLE hInstance
17 typedef struct HINSTANCE__* hInstance;
18 #elif MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX
19 # define MYGUI_DYNLIB_HANDLE void*
20 #elif MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
21 # include <CoreFoundation/CFBundle.h>
22 # define MYGUI_DYNLIB_HANDLE CFBundleRef
39 DynLib(
const std::string& name);
52 std::string getName(
void)
const;
62 void* getSymbol(
const std::string& strName )
const noexcept;
66 std::string dynlibError()
const;
#define MYGUI_DYNLIB_HANDLE
Resource holding data about a dynamic library.
std::string mName
Name of library.
void * mInstance
Handle to the loaded library.
Manager of dynamic libraries.