开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜