【发布时间】:2012-06-13 08:30:22
【问题描述】:
我有带有 int** 参数的 c++ 方法,它是指向 int 数组的指针。
如何将其编组为 C#?
【问题讨论】:
-
不发布这个作为答案,因为我无法确认;但尝试将参数编组为
ref int[]。 -
试过这个。不工作
-
@Redwan - “不起作用”是什么意思?
-
@Bond - System.AccessViolationException 被抛出
-
我会尝试使用 ref IntPtr,但不确定。
标签: c# interop marshalling .net