Mercurial > code
comparison C++/DynLib.h @ 196:274b4f216e65
DynLib: Windows support complete
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 28 Nov 2013 20:03:07 +0100 |
parents | 42b77e0161d0 |
children | 0b029b53ff55 |
comparison
equal
deleted
inserted
replaced
195:42b77e0161d0 | 196:274b4f216e65 |
---|---|
19 #ifndef _DYN_LIB_H_ | 19 #ifndef _DYN_LIB_H_ |
20 #define _DYN_LIB_H_ | 20 #define _DYN_LIB_H_ |
21 | 21 |
22 #include <string> | 22 #include <string> |
23 | 23 |
24 #if defined(_MSC_VER) | |
25 # include <Windows.h> | |
26 #endif | |
27 | |
24 /** | 28 /** |
25 * @class DynLib | 29 * @class DynLib |
26 * @brief Load a dynamic module | 30 * @brief Load a dynamic module |
27 * | 31 * |
28 * This class is a portable wrapper to load shared libraries on | 32 * This class is a portable wrapper to load shared libraries on |
29 * supported systems. | 33 * supported systems. |
30 */ | 34 */ |
31 class DynLib { | 35 class DynLib { |
32 public: | 36 public: |
33 #if defined(_MSC_VER) | 37 #if defined(_MSC_VER) |
38 using Handle = HMODULE; | |
39 using Sym = FARPROC; | |
34 #else | 40 #else |
35 using Handle = void *; | 41 using Handle = void *; |
36 using Sym = void *; | 42 using Sym = void *; |
37 #endif | 43 #endif |
38 | 44 |