.def files C/C++ DLLs

后端 未结 6 1765
我在风中等你
我在风中等你 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:50

    I haven't worked with DLLs much, but my understanding is that for exported C++ functions, you shold use the "__declspec(dllexport)", and for exported C functions you should write the .def file. That's probably because C++ functions support overloading, but C functions do not.

提交回复
热议问题