Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<string>
- #include <sstream>
- #include <windows.h>
- #include <iostream>
- using namespace std;
- #ifndef __MAIN_H__
- #define export extern "C" __dclspec (dllexport)
- #define __MAIN_H__
- /* To use this exported function of dll, include this header
- * in your project.
- */
- #define DLL_EXPORT __declspec(dllexport)
- #ifdef __cplusplus
- extern "C"
- {
- double DLL_EXPORT soma(double a, double b);
- double DLL_EXPORT subtracao(double a, double b);
- string DLL_EXPORT mensagem(string x);
- }
- #endif
- #endif // __MAIN_H__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement