Export function from dll - use def file or dllexport?

Module definition files (.def) linker with export information, attributes and other program information are interconnected. The .def file is most useful when creating a DLL. Because there are linker options that can be used instead of module definitions for operators, .def files are usually not necessary. You can also use __declspec (dllexport) as a way to specify exported functions.

http://msdn.microsoft.com/en-us/library/28d6s79h%28VS.80%29.aspx

I was wondering if we should choose .def ? or dllexport ?

+3
source share
2 answers

, DLL Visual Basic ( VB.NET), .DEF. Visual Basic , stdcall, stdcall (_). , .DEF.

: http://msdn.microsoft.com/en-us/library/dt232c9t%28VS.90%29.aspx

+2

Source: https://habr.com/ru/post/1756102/


All Articles