Advertisement
Redee

C++ DLL Example config >>>>

Sep 26th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. //ы
  2.  
  3. // инклудить в другие хидеры
  4. // собирать с настройкой константы >
  5. // Properties проекта - С/С++ - Preprocessor -
  6. // Preprocessor Definitions - добавляем RDE_API_DLL_EXPORT
  7.  
  8.  
  9. #ifndef EXPORT_IMPORT_API_RDE
  10. #define EXPORT_IMPORT_API_RDE
  11.  
  12.  
  13. #ifndef RDE_API_STATIC
  14.     #define RDE_IMPORT __declspec(dllimport)
  15.     #define RDE_EXPORT __declspec(dllexport)
  16. #else
  17.     #define RDE_IMPORT
  18.     #define RDE_EXPORT
  19. #endif
  20.  
  21. #ifndef RDE_API_DLL_EXPORT
  22.     #define RDE_API RDE_IMPORT
  23. #else
  24.     #define RDE_API RDE_EXPORT
  25. #endif
  26.  
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement