I use the following function, Hypetia's I think, to download still images from multiple remote video servers:
Function Download(Url As String, FileName As String) As Boolean
DoEvents
Download = URLDownloadToFile(ByVal 0&, Url, FileName, 0, 0) = 0
End Function
The function works well most of the time but occasionally it seems to get stuck in the loop and locks the programme. I have tried a couple of timer routines to break out but when the function locks up the timers stop incrementing as well.
Any suggestions?
[gray]Experience is something you don't get until just after you need it.[/gray]
Function Download(Url As String, FileName As String) As Boolean
DoEvents
Download = URLDownloadToFile(ByVal 0&, Url, FileName, 0, 0) = 0
End Function
The function works well most of the time but occasionally it seems to get stuck in the loop and locks the programme. I have tried a couple of timer routines to break out but when the function locks up the timers stop incrementing as well.
Any suggestions?
[gray]Experience is something you don't get until just after you need it.[/gray]