Is def file is necessary to define
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.
精彩评论