C#调用C++的DLL简述

C++函数特性需要添加

extern "C" __declspec(dllexport)

C#函数特性需要添加

[DllImport("dll文件名", CallingConvertion = CallingConvertion.Cdecl)]