]> git.saurik.com Git - wxWidgets.git/blob - samples/dll/my_dll.h
Use /bin/echo for creation of Mac OS X PkgInfo files.
[wxWidgets.git] / samples / dll / my_dll.h
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
18 #ifdef MY_DLL_BUILDING
19 #define MY_DLL_DECL __declspec(dllexport)
20 #else
21 #define MY_DLL_DECL __declspec(dllimport)
22 #endif
23
24 // launch wx UI from some application that may or may not be written in wx
25 MY_DLL_DECL void run_wx_gui_from_dll(const char *title);
26
27 // run this to shutdown running threads etc.
28 MY_DLL_DECL void wx_dll_cleanup();
29
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif // _MY_DLL_H_