There are four methods for exporting a definition, listed in recommended order of use:
-
__declspec(dllexport) in the source code
-
An EXPORTS statement in a .def file
-
A comment directive in the source code, of the form
#pragma comment(linker, "/export: definition ")
.
网友评论