[C++][Original]How to add def file to DLL in VS2019

Right click on the project and select Add - New Item

Then find the def file

 

 

Define the export function in the def file

 

LIBRARY

EXPORTS
Show @1

In this way, the function name will not change after the DLL is exported, and there is no need to make other settings

Guess you like

Origin blog.csdn.net/FL1623863129/article/details/131240096