导入lib与双重设置头文件(生成dll和exe调用dll时)
#ifndef AAA#ifdef BB_API :BB_API可以放在生成dll的cpp中#define AAA __declspec(dllexport)#else#define AAA __declspec(dllimport)#pragma comment ( lib,"XXXX.lib" )#endif#endif