C动态库里的参数为BYTE*,我应该再c#用什么数据类型进行对应,在线等

解决方案 »

  1.   

    int CompressPackage(BYTE* source, unsigned long sourceLen, BYTE* result, unsigned long* resultLen)是这么一个函数,应该怎么在C#中声明这个函数
      

  2.   

    [DllImportAttribute("你的DLL.dll", EntryPoint="CompressPackage")]
    public static extern  int CompressPackage(byte[] source, uint sourceLen,byte[] result, ref uint resultLen) ;
    试下这个看成不.
      

  3.   

    DllImportAttribute("你的DLL.dll", EntryPoint="CompressPackage")]
    public static extern int CompressPackage(byte[] source, uint sourceLen,byte[] result, ref uint resultLen) ;
    试下这个看成不.