找回密码
 加入
搜索
查看: 3927|回复: 6

发现3.3.1.1一个编译问题

[复制链接]
发表于 2009-8-21 21:27:49 | 显示全部楼层 |阅读模式
本帖最后由 Bone 于 2009-8-21 21:30 编辑

在编辑器里F5执行没有一点问题,但是编译后会出现下面问题



代码如下:
Func DownLoadimg($imgUrl)
        Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
        Do
                Sleep(250)
        Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
        Local $aData = InetGetInfo($hDownload) ; Get all information.
        InetClose($hDownload) ; Close the handle to release resourcs.
EndFunc   ;==>DownLoadimg

试了这样也还是一样的问题

Func DownLoadimg($imgUrl)
        Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
        Do
                Sleep(250)
        Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
EndFunc   ;==>DownLoadimg

一时间找不到问题所在
找了老版本的编译,以下面代码编译后执行成功
分析可能是3.3.1.1版本编译的问题

Func DownLoadimg($imgUrl)
        Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
        While @InetGetActive
        WEnd
EndFunc

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2009-8-21 22:24:45 | 显示全部楼层
Local $imgUrl = "http://www.google.cn/images/nav_logo4.png"
Func DownLoadimg($imgUrl)
        Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
        Do
                Sleep(250)
        Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
        Local $aData = InetGetInfo($hDownload) ; Get all information.
        InetClose($hDownload) ; Close the handle to release resourcs.
EndFunc   ;==>DownLoadimg
3.3.1.1 编译后无错.
 楼主| 发表于 2009-8-23 00:56:12 | 显示全部楼层
2# iftodo


你试试这样

Local $imgUrl = "http://www.google.cn/images/nav_logo4.png"

Func DownLoadimg($imgUrl)

        Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)

        Do

                Sleep(250)

        Until InetGetInfo($hDownload, 2) ; Check if the download is complete.

        Local $aData = InetGetInfo($hDownload) ; Get all information.

        InetClose($hDownload) ; Close the handle to release resourcs.

EndFunc   ;==>DownLoadimg
DownLoadimg($imgUrl)  ;加上这一行你编译再试试
发表于 2009-8-23 01:52:34 | 显示全部楼层


上图是用英文原版编译的出错信息,说什么未知函数名??
现在可以肯定的是,不是汉化版的问题,有可能是InetGetInfo这函数被取消了吧..  有兴趣的话到官网查下就知道了.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2009-8-24 21:05:00 | 显示全部楼层
那就不太清楚了。。。
发表于 2009-8-24 22:24:56 | 显示全部楼层
新版本新增了InetGetInfo函数,但编译后会提示未知函数的!等官方修复吧
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-7 03:48 , Processed in 0.072564 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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