7,763
社区成员
发帖
与我相关
我的任务
分享
'Custom Dll
Private Declare Function fnWinAPI_DLL Lib "WinAPI_DLL.dll" Alias "?fnWinAPI_DLL@@YAHXZ" () As Long
// 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 WINAPI_DLL_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
// WINAPI_DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef WINAPI_DLL_EXPORTS
#define WINAPI_DLL_API __declspec(dllexport)
#else
#define WINAPI_DLL_API __declspec(dllimport)
#endif
// This class is exported from the WinAPI_DLL.dll
class WINAPI_DLL_API CWinAPI_DLL {
public:
CWinAPI_DLL(void);
// TODO: add your methods here.
};
extern WINAPI_DLL_API int nWinAPI_DLL;
WINAPI_DLL_API int fnWinAPI_DLL(void);