Vs2017 generates C++/C language DLL and calls extremely simple explanation in seconds

        In order to reduce the text description as much as possible and reduce the fatigue of reading, the picture is directly above.

1. C++ creates dll dynamic link library under VS2017.






2. Create dll dynamic link library with C language code under VS2017. (The export method is a little different from C++)










Note: It is worth mentioning that the file name of the exported DLL is the project name of the project (you can modify it yourself).


After the DLL is generated, many programming languages ​​can call the functions in the DLL. Now take the C# program to call "Project1.dll" as an example.








complete!

If you have any other questions, you can email me [email protected].


Guess you like

Origin blog.csdn.net/zhunju0089/article/details/80906501