帮你补充一下int[] myCH = new int[3];
CtiCall.SsmGetId(myCH);

解决方案 »

  1.   

    我定义成了int[],可是返回值确是null
      

  2.   

    返回额数字,它应该是指向数组的指针,用 int[]
      

  3.   

    int[] myCH = new int[];
    CtiCall.SsmGetId(ref int[] myCH);获取后是myCH为null
      

  4.   

    用 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();