What is __declspec and when do I need to use it? Ask Question

What is __declspec and when do I need to use it? Ask Question

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?

ベストアンサー1

This is a Microsoft specific extension to the C++ language which allows you to attribute a type or function with storage class information.

Documentation

__declspec (C++)

おすすめ記事