标签:
一、stdcall
1.
#define DLLEXPORT _declspec(dllexport) _stdcall,
int DLLEXPORT func(const char *peer,unsigned int port);
2.
#define DLLIMPORT _declspec(dllimport) _stdcall,
int DLLIMPORT func(const char *peer,unsigned int port);
二、extern”C”按C标准导出
1.
#define DLLEXPORT extern”C” _declspec(dllexport),
DLLEXPORT int func();
2.
#define DLLIMPORT extern”C” _declspec(dllimport);
DLLIMPORT int func();
标签:
原文地址:http://www.cnblogs.com/bayzhang/p/5593413.html