标准的DLL头文件中都会有这么一段宏
#ifdef _EXPORTING
#define
API_DECLSPEC __declspec(dllexport)
#else
#define
API_DECLSPEC __declspec(dllimport)
#endif
然后用
API_DECLSPEC
标准的DLL头文件中都会有这么一段宏
#ifdef _EXPORTING
#define
API_DECLSPEC __declspec(dllexport)
#else
#define
API_DECLSPEC __declspec(dllimport)
#endif
然后用
API_DECLSPEC