什么是__declspec和什么时候需要使用它? [英] What is __declspec and when do I need to use it?
本文介绍了什么是__declspec和什么时候需要使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我正在阅读的代码中看到__declspec的实例。它是什么?
I have seen instances of __declspec in the code that I am reading. What is it? And when would I need to use this construct?
推荐答案
这是Microsoft对C ++语言的特定扩展,具有存储类信息的类型或函数。
This is a Microsoft specific extension to the C++ language which allows you to attribute a type or function with storage class information.
文档
这篇关于什么是__declspec和什么时候需要使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文