【发布时间】:2012-11-16 19:45:14
【问题描述】:
我应该使用
bool __declspec(dllexport) function()
{
return true;
}
或
__declspec(dllexport) bool function()
{
return true;
}
这两者有什么区别? 这会影响函数的执行方式或从应用程序调用时返回的内容吗? (此代码用于 DLL)。
【问题讨论】:
-
你检查了组件吗?
-
如何在 VS2012 中做到这一点? :P
标签: c++ windows visual-studio declaration