www.pudn.com > CS_CALLAPI_20111018A.rar > USERAPIDLL.h, change:2011-10-18,size:985b


// 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 USERAPIDLL_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  
// USERAPIDLL_API functions as being imported from a DLL, whereas this DLL sees symbols 
// defined with this macro as being exported. 
#ifdef USERAPIDLL_EXPORTS 
#define USERAPIDLL_API __declspec(dllexport) 
#else 
#define USERAPIDLL_API __declspec(dllimport) 
#endif 
 
// This class is exported from the USERAPIDLL.dll 
class USERAPIDLL_API CUSERAPIDLL { 
public: 
	CUSERAPIDLL(void); 
	// TODO: add your methods here. 
}; 
 
extern USERAPIDLL_API int nUSERAPIDLL; 
 
USERAPIDLL_API int fnUSERAPIDLL(void); 
 
extern "C" 
{ 
	USERAPIDLL_API int testadd(int a,int b); 
	USERAPIDLL_API int testminus(int a,int b); 
}