|
楼主 |
发表于 2013-5-9 14:42:10
|
显示全部楼层
本帖最后由 3370225 于 2013-5-9 14:48 编辑
云死,例子里的源码是错误的运行不了
#include <ACN_HASH.au3>
Global $BufferSize = 0x20000
Global $Filename = FileOpenDialog("Open file", "", "Any file (*.*)")
If $Filename = "" Then Exit
Global $Timer = TimerInit()
Global $FileHandle = FileOpen($Filename, 16)
$MD5CTX = _MD5Init()
For $i = 1 To Ceiling(FileGetSize($Filename) / $BufferSize)
_MD5Input($MD5CTX, FileRead($FileHandle, $BufferSize))
Next
$Hash = _MD5Result($MD5CTX)
FileClose($FileHandle)
MsgBox (0, "Result", $Hash & " in " & Round(TimerDiff($Timer)) & " ms")
提示 _MD5Input(): 未定义的函数.是不是少了个什么文件,谁提供下 |
|