]>
Commit | Line | Data |
---|---|---|
61aba460 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: my_dll.h | |
3 | // Purpose: Sample showing how to use wx from a DLL | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2009-12-03 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2009 Vaclav Slavik | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _MY_DLL_H_ | |
12 | #define _MY_DLL_H_ | |
13 | ||
14 | #ifdef __cplusplus | |
15 | extern "C" { | |
16 | #endif | |
17 | ||
9f38fe4b | 18 | #ifdef MY_DLL_BUILDING |
1acea787 | 19 | #define MY_DLL_DECL __declspec(dllexport) |
9f38fe4b | 20 | #else |
1acea787 | 21 | #define MY_DLL_DECL __declspec(dllimport) |
9f38fe4b VZ |
22 | #endif |
23 | ||
61aba460 | 24 | // launch wx UI from some application that may or may not be written in wx |
9f38fe4b | 25 | MY_DLL_DECL void run_wx_gui_from_dll(const char *title); |
61aba460 VS |
26 | |
27 | // run this to shutdown running threads etc. | |
9f38fe4b | 28 | MY_DLL_DECL void wx_dll_cleanup(); |
61aba460 VS |
29 | |
30 | ||
31 | #ifdef __cplusplus | |
32 | } | |
33 | #endif | |
34 | ||
35 | #endif // _MY_DLL_H_ |