C++函数特性需要添加
extern "C" __declspec(dllexport)
C#函数特性需要添加
[DllImport("dll文件名", CallingConvertion = CallingConvertion.Cdecl)]