动态链接库的练习

// 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);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值