int WINAPI RmuGetReceived (HANDLE hCom, UCHAR* uLenUii, UCHAR* uUii);
//HANDLE hCom:通信端口句柄。
//UCHAR* uLenUii:标签UII 的长度,1 个字节。
//UCHAR* uUii:标签UII,至少66 个字节。
[DllImport("API.dll", EntryPoint = "RmuGetReceived")]
public static extern int RmuGetReceived(int hCom,ref byte uLenUii, ref byte[] uUii);
byte uLenUii= new byte();
byte[] uUii= new byte[66];
int ret = API.RmuGetReceived(comm.hComm,ref uLenUii,ref uUii);
解决方案 »
- 如何快速大量自动操作网站?
- 请问一段泛型方法的写法
- 为什么删除不了很奇怪
- winform用户控件 ?
- 求C#结合DirectX这方面的资料
- 如何获得程序所在的当前目录
- 谁能给解释一下shtml文件和html文件又什么区别,如何用ASP.NET(C#)生成shtml文件.
- dll里的HRESULT GetFyImageDataString([out] BSTR*data,[out, retval] BOOL *bSucceed);如何在C#调用呀?
- FTP协议中LIST命令接受不了全部数据,解决问题者立即给分
- 在winxp上安装.NET遇到的奇怪问题!
- 如何向系统临时提高权限
- winfrom开发中简单小问题解决方案.
[DllImport("API.dll", EntryPoint = "RmuGetReceived")]
public static extern int RmuGetReceived(int hCom, [Out, MarshalAs(UnmanagedType.LPArray)]byte uLenUii, [Out, MarshalAs(UnmanagedType.LPArray)]byte[] uUii);=====
byte uLenUii= new byte();
byte[] uUii= new byte[66];
int ret = API.RmuGetReceived(comm.hComm,uLenUii,uUii);有异常NotSupportedException
public static extern int RmuGetReceived(int hCom,ref byte uLenUii, ref byte[] uUii);
byte uLenUii= new byte();
byte[] uUii= new byte[66];
int ret = API.RmuGetReceived(comm.hComm,ref uLenUii,ref uUii);