开发者

Is def file is necessary to define

开发者 https://www.devze.com 2023-04-11 15:31 出处:网络
Is there necessary to defin开发者_运维知识库e def file in the vc++(unmanaged) dll.If I do\'nt want to define the def file then how can I create the dll without def file.The .def file is the module def

Is there necessary to defin开发者_运维知识库e def file in the vc++(unmanaged) dll.If I do'nt want to define the def file then how can I create the dll without def file.


The .def file is the module definition file. It controls which symbols are exported from the dll. The .def file is not absolutely necessary - the __declspec(dllexport) keyword can be used to specify exports instead.

In general, using __declspec(dllexport) is easier with C++, as exporting a C++ symbol using a .def requires an understanding of the compiler's name mangling scheme.

0

精彩评论

暂无评论...
验证码 换一张
取 消