关于C#调用dll的函数是int*的问题 帮你补充一下int[] myCH = new int[3];CtiCall.SsmGetId(myCH); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我定义成了int[],可是返回值确是null 返回额数字,它应该是指向数组的指针,用 int[] int[] myCH = new int[];CtiCall.SsmGetId(ref int[] myCH);获取后是myCH为null 用 IntPtr 应该是可以的,如果 C 中 int 是16位的,那 C# 得换成 Int16[]buff;int[] buff = new int[3];GCHandle gc = GCHandle.Alloc(buff, GCHandleType.Pinned);IntPtr p = gc.AddrOfPinnedObject();CtiCall.SsmGetId(p);gc.Free(); 使用jquery实现斑马线效果 被Thread弄得快疯了,如何安全终止线程? 那位仁兄做过截获打印机数据的开发, 帮忙给点意见 Visual C# 2005 注册码 能给我吗? help!!如何实现水晶报表按规定明细行数分页!!! 想挣分的进来吧!帮我看看我的问题,顶者有分(1) 帮我看看是什么问题造成的错误! 急!!!uniqueidentifier类型字段的问题!大家进来看看!!可以加分的哦! Session在Web service中不起作用,困惑? 请教一下在这种派生类如何实现多态? 延时显示数据,请教帮助,谢谢!!! 此C语言中表达的意思的相当于C#中什么
CtiCall.SsmGetId(ref int[] myCH);获取后是myCH为null
int[] buff = new int[3];
GCHandle gc = GCHandle.Alloc(buff, GCHandleType.Pinned);
IntPtr p = gc.AddrOfPinnedObject();
CtiCall.SsmGetId(p);
gc.Free();