[DllImport("USBIOX.dll")] public static extern IntPtr USBIO_OpenDevice(uint iIndex); //打开移动设备 [DllImport("USBIOX.dll")] public static extern IntPtr USBIO_CloseDevice(uint iIndex); //打开移动设备 [DllImport("USBIOX.dll")] public static extern bool USBIO_SetStream(uint iIndex, uint imode); //设置传输速度 [DllImport("USBIOX.dll")] public static extern bool USBIO_WriteI2C(uint iIndex, byte idevice, byte iaddr, byte ibyte); [DllImport("USBIOX.dll")] public static extern bool USBIO_ReadI2C(uint iIndex, byte idevice, byte iaddr, byte[] ibyte);
我用C#开发的软件 烧写200多字节,差不多需要3.5S时间 ,使用其他人开发的软件基本上就是秒写,也就1S吧 请问下啊是C#调用非托管dll文件的原因才导致效率如此慢的嘛。