| |||
| Home > Compiler-specific Features > __declspec attributes > __declspec(dllimport) | |||
The __declspec(dllimport) attribute imports
a symbol through the dynamic symbol table when building DLL libraries.
When an inline function is marked __declspec(dllimport),
the function definition in this compilation unit might be inlined,
but is never generated out-of-line. An out-of-line call or address
reference uses the imported symbol.
The dllimport attribute can be used on extern functions
and variables.