64,648
社区成员
发帖
与我相关
我的任务
分享
//*.h
#ifdef MYLIBAPI
#define MYLIBAPI extern "C" __declspec(dllexport)
#else
#define MYLIBAPI extern "C" __declspec(dllimport)
#endif
class MYLIBAPI CMyClass // 导出整个类
{
// 类成员
};
//*.cpp
#define MYLIBAPI
#include "*.h"//header file of your defined class
// 函数的实现
...