找回密码
 加入
搜索
查看: 1834|回复: 2

[AU3基础] 那位大哥大姐能帮我看下代码是什么错误吗?

[复制链接]
发表于 2013-5-11 11:26:04 | 显示全部楼层 |阅读模式
[au3]
$dll= DllOpen("Prius.dll")
$hot=DllCall($dll,"str","Text2","str","123")
MsgBox(64,"提示",$hot[0])
DllClose($dll)
[/au3]


-------------------------------------------------
>"D:\autoit3\SciTe\ACNWrapper\ACNWrapper.exe" /run /ErrorStdOut /in "C:\Users\Administrator\Desktop\dllcall.au3" /autoit3dir "D:\autoit3" /UserParams   
+>11:24:55 开始执行 ACNWrapper v.1.0.1.1
+> ============================================
+>执行环境:
+>        CPU构架:        X64
+>        系统构架:        X64
+>        系统语言:        0804
+>        键盘布局:        00000804
+>        内存总量:        3956MB
+>        内存剩余:        2199MB
+>        操作系统:        WIN_7/Service Pack 1
+>        AU3版本:        3.3.9.0
+> ============================================
>运行 AU3Check (1.54.23.0)  开始目录:D:\autoit3
+>11:24:55 AU3Check 完成[CODE]:0
>运行:(3.3.9.0):D:\autoit3\autoit3_x64.exe "C:\Users\Administrator\Desktop\dllcall.au3"   
"C:\Users\Administrator\Desktop\dllcall.au3" (3) : ==> ??????????.:
MsgBox(64,"??",$hot[0])
MsgBox(64,"??",$hot^ ERROR
->11:24:55 AutoIT3.exe 完成:[CODE]:1
+>11:24:56 ACNWrapper 完成..
>退出代码: 1        运行时间: 1.136 秒
 楼主| 发表于 2013-5-11 11:34:07 | 显示全部楼层
用VB调用正常 C#调用也正常
发表于 2013-5-11 11:43:01 | 显示全部楼层
DllCall失败了才返回数组
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 18:12 , Processed in 0.075969 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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