_declspec Keyword

Use the _declspec keyword to declare imported or exported functions and variables, or to declare thread-local storage (TLS) objects.

The _declspec keyword is allowed anywhere in the declaration specifier. It is used with the following sub-specifiers: dllexport, dllimport, and thread.



_Export Keyword
#pragma export
Keywords in C and C++
Linkage Keywords (OS/2, Windows)


Export Symbols from a DLL