[Solved] C unsigned char ** and unsigned long * to C#

Try Following : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ConsoleApplication49 { class Program { [DllImport(“XXXXX.dll”, CallingConvention = CallingConvention.Cdecl)] public static extern int Compress(int compressLevel, IntPtr srcBuf, IntPtr outBuf, IntPtr size); static void Main(string[] args) { int compressLevel = 0; string input = “The quick brown fox jumped over the lazy … Read more