.def files C/C++ DLLs

后端 未结 6 1789
我在风中等你
我在风中等你 2020-11-30 04:31

I am not understanding the point of using .def files with DLLs.

It seems that it replaces the need to use explicit exports within your DLL code (ie. explicit __decls

6条回答
  •  误落风尘
    2020-11-30 04:34

    .DEF files were more common in 16-bit windows where they were usually the only way to specify which symbols should be exported.

    In addition, they provided a means to specify exports by ordinal value (@1, @2 etc.) rather than by name. This method of looking up symbols was used when performance was really important, such as in video drivers.

提交回复
热议问题