Advertisement
Guest User

main.h

a guest
Jun 7th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include<string>
  2. #include <sstream>
  3. #include <windows.h>
  4. #include <iostream>
  5. using namespace std;
  6. #ifndef __MAIN_H__
  7.  
  8. #define export extern "C" __dclspec (dllexport)
  9.  
  10. #define __MAIN_H__
  11.  
  12. /*  To use this exported function of dll, include this header
  13.  *  in your project.
  14.  */
  15.  
  16. #define DLL_EXPORT __declspec(dllexport)
  17.  
  18.  
  19. #ifdef __cplusplus
  20. extern "C"
  21. {
  22.     double DLL_EXPORT soma(double a, double b);
  23.     double DLL_EXPORT subtracao(double a, double b);
  24.     string DLL_EXPORT mensagem(string x);
  25. }
  26. #endif
  27.  
  28.  
  29. #endif // __MAIN_H__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement