C # calling C ++ DLL libraries

1, VS created a dynamic library project, set to be exported interfaces;

Note that adding a * .def file, as follows

 

 

 

 

 

 

 

2, create a C # project;

3, C # Add reference works; below

 

     

 

 

 

 

 

3, C # project to add an interface to export

 

 

 

 

4, the interface to call C #

Published 18 original articles · won praise 0 · Views 5626

Guess you like

Origin blog.csdn.net/M_ZONE125/article/details/81605929