1 #ifndef __MAIN_H__ 2 #define __MAIN_H__ 3 4 #include <windows.h> 5 6 /* To use this exported function of dll, include this header 7 * in your project. 8 */ 9 10 #ifdef BUILD_DLL 11 #define DLL_EXPORT __declspec(dllexport) 12 #else 13 #define DLL_EXPORT __declspec(dllimport) 14 #endif 15 16 17 #ifdef __cplusplus 18 extern "C" 19 { 20 #endif 21 22 void DLL_EXPORT SomeFunction(const LPCSTR sometext); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif // __MAIN_H__ 29