X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61aba4609aa384e8906e76715ea483cbf46c6725..6f026b5b63fe7ccb025e84509886f74772b9df13:/samples/dll/my_dll.h diff --git a/samples/dll/my_dll.h b/samples/dll/my_dll.h index ffb53a1053..6ffc39e960 100644 --- a/samples/dll/my_dll.h +++ b/samples/dll/my_dll.h @@ -3,7 +3,6 @@ // Purpose: Sample showing how to use wx from a DLL // Author: Vaclav Slavik // Created: 2009-12-03 -// RCS-ID: $Id$ // Copyright: (c) 2009 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -15,11 +14,17 @@ extern "C" { #endif +#ifdef MY_DLL_BUILDING + #define MY_DLL_DECL __declspec(dllexport) +#else + #define MY_DLL_DECL __declspec(dllimport) +#endif + // launch wx UI from some application that may or may not be written in wx -WXIMPORT void run_wx_gui_from_dll(const char *title); +MY_DLL_DECL void run_wx_gui_from_dll(const char *title); // run this to shutdown running threads etc. -WXIMPORT void wx_dll_cleanup(void); +MY_DLL_DECL void wx_dll_cleanup(); #ifdef __cplusplus