#ifdef DllDemo_EXPORTS 
#define DllAPI __declspec(dllexport) 
#else 
#define DllAPI __declspec(dllexport) 
extern "C" //原样编译 
{ 
    DllAPI int Max(int a,int b); //__stdcall使非C/C++语言内能够调用API 
} 
#endif