C#中如何使用指针
1. 项目右键--属性---生成--允许不安全代码
2.在代码中加入unsafe关键字
[DllImport("DLL.dll")]
unsafe public static extern bool UsbWrite(char* WriteBuffer, int size);
[DllImport("DLL.dll")]
unsafe public static extern bool UsbRead(char* ReadBuffer, int size);

浙公网安备 33010602011771号