]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/my_dll.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / samples / dll / my_dll.h
CommitLineData
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
61aba460
VS
6// Copyright: (c) 2009 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _MY_DLL_H_
11#define _MY_DLL_H_
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
9f38fe4b 17#ifdef MY_DLL_BUILDING
1acea787 18 #define MY_DLL_DECL __declspec(dllexport)
9f38fe4b 19#else
1acea787 20 #define MY_DLL_DECL __declspec(dllimport)
9f38fe4b
VZ
21#endif
22
61aba460 23// launch wx UI from some application that may or may not be written in wx
9f38fe4b 24MY_DLL_DECL void run_wx_gui_from_dll(const char *title);
61aba460
VS
25
26// run this to shutdown running threads etc.
9f38fe4b 27MY_DLL_DECL void wx_dll_cleanup();
61aba460
VS
28
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif // _MY_DLL_H_