一行错误的代码引发的思考 ----- Autoit编译与开发环境(OS Bit)的某种关系

6 views
Skip to first unread message

Chris

unread,
Jan 9, 2013, 9:14:03 AM1/9/13
to qda_...@googlegroups.com
各位好:

今天有两个问题。

   问题 1:

            今天遇见一个很神奇的问题,我的OSAutomation里的一个通过cmd命令行调用Winsat.exe的程序始终无法执行。代码没有语法错误,在执行的时候,一直提示:找不到winsat.exe。 和Ath交流了一下,他说可能是路径或workDir的问题。后来问题解决后,发现确实是work dir的问题。 这个问题具体的原因我不是特别清楚。
但是以后必须注意这种情况:

在 64bit上开发的代码,必须到32bit的系统上进行测试。反之亦然。


问题 2:
         今天擅自修改 fileconstant.au3 里的常量定义,导致编译代码时候,一直报错:
报错信息:
filecreate() 函数里的 :

Global Const $GENERIC_EXECUTE = 0x20000000
Global Const $GENERIC_WRITE = 0x40000000
Global Const $GENERIC_READ = 0x80000000


这三个变量未定义。我还很傻x的说是VS的问题。 八竿子打不着的事情。 以后需要认真对待,不能妄自修改au3标准include文件。  前车之鉴,望大家莫犯。 

malinda2008

unread,
Jan 10, 2013, 9:08:52 PM1/10/13
to qda_...@googlegroups.com

Hi,Chris,
    You're very funny, in a good way.
And this remind all of us that we must announce the OS version we support when release the tool. Most importantly each result has been tested.
Reply all
Reply to author
Forward
0 new messages