腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(4676)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
4
回答
declspec
和stdcall vs.仅
declspec
我有一个非常简单的C++ win32 dll:{__
declspec
(dllexport) void DisplayHellowFromDLL()什么时候我真的需要__
declspec
(dllexport)类型的__stdcall,什么时候我只能使用__
d
浏览 0
提问于2011-06-14
得票数 14
回答已采纳
1
回答
_
declspec
和__
declspec
的区别是什么?
我有时看到关键字以两个下划线开头,有时只有一个下划线。有什么不同吗?
浏览 1
提问于2009-09-09
得票数 9
回答已采纳
1
回答
__
declspec
(限制)和__
declspec
(别名)有什么不同?
__
declspec
(限制)和__
declspec
(名词)有什么不同?我读过这个页面。但还不清楚是什么。有人能解释一下这两个注释解决了什么问题吗?
浏览 1
提问于2015-02-24
得票数 5
2
回答
使用__
declspec
(dllexport)出错:未知类型名称'__
declspec
‘
这是我想出口的GetNumber()#define DllExport __
declspec
(dllexport) DllExport
浏览 0
修改于2018-11-16
得票数 2
回答已采纳
1
回答
__
declspec
(dllexport)和__
declspec
(dllimport)在C++中
我经常在Windows上看到__
declspec
(dllexport) / __
declspec
(dllimport)指令,在Linux上看到带有函数的__attribute__((visibility
浏览 9
修改于2022-04-22
得票数 0
回答已采纳
1
回答
使用__
declspec
( dllexport )
嗨,我有点困惑于dllexport.When,我在课堂上使用__
declspec
( dllexport ) #define DllExport __
declspec
( dllexport )
浏览 4
提问于2018-02-25
得票数 3
回答已采纳
2
回答
__
declspec
分配范围
在C++中,我感兴趣的是将指针变量声明为只读变量,并考虑通过以下机制这样做:__
declspec
(allocate(".readonlyg_pROData; // I want this to be read-only 但是,我不确定__
declspec
浏览 1
修改于2014-05-01
得票数 1
回答已采纳
1
回答
堆上的对齐(__
declspec
(#))
如何对齐在堆上分配的对象,类似于__
declspec
( align (#))?
浏览 1
提问于2018-12-03
得票数 0
3
回答
__
declspec
(dllexport) ::vector<std::string>
如何修复粗体线条: __
declspec
(dllexport) int GetANumber(); **__
declspec
浏览 2
修改于2013-04-04
得票数 4
2
回答
GetProcAddress vs __
declspec
( dllimport )
这两者有什么区别?
浏览 1
提问于2018-09-15
得票数 0
回答已采纳
1
回答
正确使用__
declspec
(dllimport)
Foo.h:#define DECL __
declspec
(dllexport)#define DECL __
declspec
(dllimport)如果我尝试在未定义导出的情况下构建Foo.cpp (以便宏DECL的计算结果为__
declspec
浏览 0
修改于2011-12-19
得票数 2
1
回答
_
declspec
应该放在哪里?
对于我维护的一个库,我正在从def文件切换到使用_
declspec
。我已经阅读了关于SO和MSDN文档的几个问题。我理解这个特性是如何工作的。我已经创建了宏,并根据构建环境使用_
declspec
或gcc __attribute__。宏还可以在_
declspec
(dllexport)和_
declspec
(dllimport)之间正确选择。在函数定义上使用_
declspec
有什么坏处吗?应该只在函数原型上使用_
declspec
吗? 我更喜欢在函数原型和定义上都有marco。我使用_
d
浏览 0
修改于2018-06-11
得票数 2
1
回答
__
declspec
(dllexport)静态链接库
WIN32) && defined(_GLFW_BUILD_DLL) #define GLFWAPI __
declspec
defined(_WIN32) && defined(GLFW_DLL) #define GLFWAPI __
declspec
GLEW_STATIC #define
浏览 5
修改于2020-04-08
得票数 1
2
回答
__
declspec
(dllimport)必要性
我在看这个:和我不明白为什么真的需要__
declspec
(dllimport)?
浏览 0
修改于2013-04-04
得票数 3
回答已采纳
1
回答
多个声明的对齐(__
declspec
)
这是以下声明语法:__
declspec
(align(16)) float gF[4];等同于:或者在后一种语法中只对齐第一个变量?
浏览 0
修改于2013-01-08
得票数 3
回答已采纳
1
回答
使用__
declspec
(dllexport)代替-EXPORT:
我查看了导出函数的文档,它指出__
declspec
(dllexport)应该在命令行版本-EXPORT:(如果可能的话)之前使用。我目前正在使用命令行变体。DLL的头文件:#define LIBRARY_API __
declspec
(dllexport)#define LIBRARY_API __
declspec
(dllimport)typedef PRINT_TE
浏览 1
修改于2015-12-19
得票数 0
回答已采纳
4
回答
__
declspec
(dllimport/dllexport)和继承
给定一个包含以下类的DLL: #define DLLAPI __
declspec
(...)
浏览 1
修改于2009-08-12
得票数 5
回答已采纳
2
回答
__cdecl和__
declspec
调用约定混淆
此外,第三方还向我提供了一个C++ DLL框架,它可以导出如下函数: #define
DECLSPEC
__
declspec
(dllexport)#endif extern "C" {
DECLSPEC
为什么使用__
declspec
约定而不是__cdedl导出函数
浏览 1
修改于2017-11-22
得票数 8
回答已采纳
3
回答
__
declspec
(dllimport)如何加载库
MSDN说我可以用__
declspec
(dllexport)从库中导出函数,但是如何在我的可执行文件中加载这个库呢?我在DLL中有一个导出的函数:现在我想在我的可执行文件中使用它: __
declspec
(dllimport) void
浏览 2
修改于2013-07-30
得票数 12
回答已采纳
1
回答
什么时候使用__
declspec
(noalias)?
正如我所理解的,如果() __
declspec
(noalias)意味着函数只修改她身体内的内存或通过参数,所以它不修改静态变量,或通过双指针修改内存,对吗?static int g = 3; { x += b; } void __
declspec
(noalias) test2(int&
浏览 6
修改于2019-09-13
得票数 0
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券