You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
“__declspec(dllexport)”意思是将后面修饰的内容定义为DLL中要导出的内容。
当然你也可以不使用这个宏,可以直接将”__declspec(dllexport)”写在要导出的函数前面。C++中定义如下:
extern "C" __declspec(dllexport) int Add(int n1, int n2);