xhdyhzw 发表于 2013-5-11 11:26:04

那位大哥大姐能帮我看下代码是什么错误吗?


$dll= DllOpen("Prius.dll")
$hot=DllCall($dll,"str","Text2","str","123")
MsgBox(64,"提示",$hot)
DllClose($dll)



-------------------------------------------------
>"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 完成: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)
MsgBox(64,"??",$hot^ ERROR
->11:24:55 AutoIT3.exe 完成::1
+>11:24:56 ACNWrapper 完成..
>退出代码: 1        运行时间: 1.136 秒

xhdyhzw 发表于 2013-5-11 11:34:07

用VB调用正常 C#调用也正常

veket_linux 发表于 2013-5-11 11:43:01

DllCall失败了才返回数组
页: [1]
查看完整版本: 那位大哥大姐能帮我看下代码是什么错误吗?