发布网友 发布时间:2024-10-18 15:26
共1个回答
热心网友 时间:2024-10-19 18:15
C#的定义
public static extern IntPtr run([MarshalAs(UnmanagedType.LPArray)]byte[] uml, [MarshalAs(UnmanagedType.LPArray)]byte[] name);
调用
byte[] buml = new byte[]{};
byte[] bname = new byte[]{};
string a="bcde";
string b="fghijk";
buml = System.Text.Encoding.ASCII.GetBytes(a);
bname = System.Text.Encoding.ASCII.GetBytes(b);
IntPtr intp = run(buml , bname );