请问这有个Com动态库中有个函数定义如下:
ReadComm(ref Array bytRead_Result1),哪个bytRead_Result1 是一个存取字节的二维数组,
我现在这样调用:
byte[] strResult=new byte[10],
ReadComm(strResult[0]) 咋提示编译不通过. 最匹配的重载方法具有一些无效参数.
或定义 Array strResult=new byte[10] 也不行.
该如何调用? 谢了!
ReadComm(ref Array bytRead_Result1),哪个bytRead_Result1 是一个存取字节的二维数组,
我现在这样调用:
byte[] strResult=new byte[10],
ReadComm(strResult[0]) 咋提示编译不通过. 最匹配的重载方法具有一些无效参数.
或定义 Array strResult=new byte[10] 也不行.
该如何调用? 谢了!
提示参数: ref Array bytRead_Result1.
byte[] strResut=new byte[2]或Array strResut=new Array[2] 都不行.调用: ReadComm(strResult[0]) 或 ReadComm(&strResult[0])
提示最匹配的重载方法具有一些无效参数.