![]() |
DLL_INTERFACE | Language Extension |
dll.h |
Starts the DLL interface section.
The DLL_INTERFACE macro starts the DLL interface section and tells the linker that a DLL image should be produced instead of the standard executable image. The DLL interface section must have the following general layout:
DLL_INTERFACE // Declarations of global symbols which should be exported, // and prototypes of functions which should be exported. DLL_ID identification_number DLL_VERSION major_version_number, minor_version_number DLL_EXPORTS list_of_exported_symbols DLL_IMPLEMENTATION // Now the implementation followsIn principle, in addition to function prototypes, it is legal to put function implementations in the DLL interface section as well, although this is not a good practice from the aspect of readability and good structuring. So, a well-designed interface should contain only prototypes.