// 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 DLL_CREAT_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
// DLL_CREAT_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef DLL_CREAT_EXPORTS
#define DLL_CREAT_API __declspec(dllexport)
#else
#define DLL_CREAT_API __declspec(dllimport)
#endif
// This class is exported from the dll_creat.dll
class DLL_CREAT_API CDll_creat {
public:
CDll_creat(void);
// TODO: add your methods here.
static void Print_Helloworld(void);
};
extern DLL_CREAT_API int nDll_creat;
DLL_CREAT_API int fnDll_creat(void);
DLL_CREAT_API int my_add(int a,int b);
动态链接库的练习
最新推荐文章于 2020-05-09 18:00:57 发布