楼上请帮忙看看,如何释放法,我是用的下面一个函数Private Function getHtmlStr2$(strUrl$) Const tmpfile As String = "c:\tmpO0.tmp" URLDownloadToFile 0, strUrl, tmpfile, 0, 0 ' Do Until FileLen(tmpfile) ' DoEvents ' Loop Dim fn%, tmp$ fn = FreeFile Open tmpfile For Binary Access Read As #fn tmp = Space(FileLen(tmpfile)) Get #fn, , tmp Close #fn getHtmlStr2 = tmp End Function
楼上请帮忙看看,如何释放法,我是用的下面一个函数Private Function getHtmlStr2$(strUrl$)
Const tmpfile As String = "c:\tmpO0.tmp"
URLDownloadToFile 0, strUrl, tmpfile, 0, 0
' Do Until FileLen(tmpfile)
' DoEvents
' Loop
Dim fn%, tmp$
fn = FreeFile
Open tmpfile For Binary Access Read As #fn
tmp = Space(FileLen(tmpfile))
Get #fn, , tmp
Close #fn
getHtmlStr2 = tmp
End Function