#ifndef __MAIN_H__ #define __MAIN_H__ #include /* To use this exported function of dll, include this header * in your project. */ #ifdef BUILD_DLL #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ void DLL_EXPORT SomeFunction( const LPCSTR sometext); #ifdef __cplusplus } #endif /* __cplusplus */ #endif