vb.net 中怎样用传址的方式获取数组数据

todejun 2004-03-16 12:37:30
Declare Function GetOscData Lib "RVO4000BUI.DLL" (ByVal MemDepth As Integer, ByRef pMemInA() As Integer, ByRef pMemInB() As Integer) As Integer
*pMemInA -采样数组-- 通道A数据
*pMemInB -采样数组-- 通道B数据
...全文
49 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ninputer 2004-03-16
  • 打赏
  • 举报
回复
不要将ByRef作用在数组类型或者字符串类型前,那没有任何意义。
'前面Import System.Runtime.InteropServices

Declare Function GetOscData Lib "RVO4000BUI.DLL" ( _
ByVal MemDepth As Integer, _
<MarshalAs(UnmanagedType.LPArray)> _
ByVal pMemInA() As Integer, _
<MarshalAs(UnmanagedType.LPArray)>
ByVal pMemInB() As Integer _
) As Integer

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧