my_dll.h 841 B

12345678910111213141516171819202122232425262728293031323334
  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. // Copyright: (c) 2009 Vaclav Slavik
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _MY_DLL_H_
  10. #define _MY_DLL_H_
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #ifdef MY_DLL_BUILDING
  15. #define MY_DLL_DECL __declspec(dllexport)
  16. #else
  17. #define MY_DLL_DECL __declspec(dllimport)
  18. #endif
  19. // launch wx UI from some application that may or may not be written in wx
  20. MY_DLL_DECL void run_wx_gui_from_dll(const char *title);
  21. // run this to shutdown running threads etc.
  22. MY_DLL_DECL void wx_dll_cleanup();
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif // _MY_DLL_H_