首先新建一个DLL工程,生成dll代码如下:
/****************DLL宏定义调用*****************/
#ifndef MakeDLL
#define DLLAPI _declspec(dllexport)
#else
#define DLLAPI _declspec(dllimport)
#endif
class DLLAPI XxwImgOp
{
};
/****************DLL宏定义*****************/
#define MakeDLL
调用dll代码如下:
#pragma comment(lib,"XxwImgOpd.lib")