]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dll/my_dll.h
fix vertical mouse wheel event rotation value, sign was reversed in r74805
[wxWidgets.git] / samples / dll / my_dll.h
index ffb53a1053a62b53d455512fd0acf5919a5881a8..6ffc39e960b0346b342f59e09f6a056af07e1257 100644 (file)
@@ -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
 /////////////////////////////////////////////////////////////////////////////
 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