我试了你的程序,确实有错。
看看我的办法行不行。Private Sub Command1_Click()
Inet1.Execute "http://pimg.163.com/diy/ad/nease_75560.gif"
End SubPrivate Sub Inet1_StateChanged(ByVal State As Integer)Dim sourcefile As Integer
Dim g() As Byte
Select Case State
Case icResponseCompleted
sourcefile = FreeFile()
Open "d:\asp1.gif" For Binary Access Write As #sourcefile
g = Inet1.GetChunk(1024, icByteArray)
Do While UBound(g()) > 0
Put #sourcefile, , g()
g() = Inet1.GetChunk(1024, icByteArray)
Loop
Close #sourcefile
Case Else
End Select
End Sub
看看我的办法行不行。Private Sub Command1_Click()
Inet1.Execute "http://pimg.163.com/diy/ad/nease_75560.gif"
End SubPrivate Sub Inet1_StateChanged(ByVal State As Integer)Dim sourcefile As Integer
Dim g() As Byte
Select Case State
Case icResponseCompleted
sourcefile = FreeFile()
Open "d:\asp1.gif" For Binary Access Write As #sourcefile
g = Inet1.GetChunk(1024, icByteArray)
Do While UBound(g()) > 0
Put #sourcefile, , g()
g() = Inet1.GetChunk(1024, icByteArray)
Loop
Close #sourcefile
Case Else
End Select
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货