找回密码
 加入
搜索
查看: 1955|回复: 1

[AU3基础] [已解决]求助一个结构体内指针的问题

[复制链接]
发表于 2016-1-12 19:19:22 | 显示全部楼层 |阅读模式
本帖最后由 gaoan000 于 2016-1-13 19:13 编辑

Func create()
    local $A = dllstructcreate("struct; ulong; ptr; endfunc")
    local $B = dllstructcreate("struct; ulong; ulong; endfunc")
    local  $pB = dllstructgetptr($B)
   dllstructsetdata($A, 2, $pB)
   return $A
endfunc
;按我的意思是创建一个结构体:里面包含一个ulong类型成员和一个指向(有2个ulong成员的结构体)指针
;不知道正确否,还未验证

然后把生成的数据类型作为参数调用后:需要读取指针指向的结构体内的数据,有什么方法吗  


将$B修改成全局变量或者$B用Byref形式作为参数传入先不考虑的情况下
 楼主| 发表于 2016-1-13 19:14:22 | 显示全部楼层
还是把$B作为参数用BYREF的形式传递进来吧  别的办法没找到
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-3 20:48 , Processed in 0.072743 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表