当前位置: 代码迷 >> 综合 >> c++导出dll传递数组至c#
  详细解决方案

c++导出dll传递数组至c#

热度:28   发布时间:2024-01-24 22:35:24.0

c++ return double*

c# intPtr 类型接收

使用

Marshal.Copy(IntPtr source, double[] destination, int startIndex, int length);

将取到的source拷贝到c#声明的destination

 

  相关解决方案