code_junkie

Exporting a C++ class from a DLL

Nov 10th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #define ISDLL
  2.  
  3. #define ISDLL
  4.  
  5. #if defined( BUILD_DLL )
  6. #define IMPORT_EXPORT __declspec(dllexport)
  7. #else
  8. #define IMPORT_EXPORT __declspec(dllimport)
  9. #endif
  10. class IMPORT_EXPORT MyClass {
  11. ...
  12. };
Add Comment
Please, Sign In to add comment