#define __EXPORTS 1 #ifdef __cplusplus #ifdef __EXPORTS #define DLL_EXPORT extern "C" __declspec (dllexport) #else #define DLL_EXPORT extern "C" __declspec (dllimport) #endif #else #ifdef __EXPORTS #define DLL_EXPORT __declspec (dllexport) #else #define DLL_EXPORT __declspec (dllimport) #endif #endif // #define MY_API __stdcall DLL_EXPORT void MY_API Fun();