www.pudn.com > funcdll.rar > funcdll.h, change:2011-02-14,size:1121b


// The following ifdef block is the standard way of creating macros which make exporting  
// from a DLL simpler. All files within this DLL are compiled with the FUNCDLL_EXPORTS 
// symbol defined on the command line. this symbol should not be defined on any project 
// that uses this DLL. This way any other project whose source files include this file see  
// FUNCDLL_API functions as being imported from a DLL, whereas this DLL sees symbols 
// defined with this macro as being exported. 
#ifdef FUNCDLL_EXPORTS 
#define FUNCDLL_API __declspec(dllexport) 
#else 
#define FUNCDLL_API __declspec(dllimport) 
#endif 
 
// This class is exported from the funcdll.dll 
class FUNCDLL_API Cfuncdll { 
public: 
	Cfuncdll(void); 
	// TODO: add your methods here. 
}; 
 
extern FUNCDLL_API int nfuncdll; 
 
FUNCDLL_API int fnfuncdll(void); 
 
 
extern "C" 
{ 
	FUNCDLL_API int Add(int var1,int var2); 
	FUNCDLL_API int Minus(int var1,int var2); 
	FUNCDLL_API int Div(int var1,int var2); 
	FUNCDLL_API int Multi(int var1,int var2); 
	FUNCDLL_API int Mode(int var1,int var2); 
	FUNCDLL_API void GetVer(char * str1); 
}