摘要:
1.在Form1类中添加以下代码 private delegate void UpdateStatusDelegate(string status); private void UpdateStatus(string status) { this.t... 阅读全文
摘要:
1. 项目右键--属性---生成--允许不安全代码2.在代码中加入unsafe关键字[DllImport("DLL.dll")] unsafe public static extern bool UsbWrite(char* WriteBuffer, int size); ... 阅读全文
摘要:
1.将DLL复制到工程下 2.添加如下代码 阅读全文