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?
__declspec
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++)
2.1m questions
2.1m answers
60 comments
57.0k users