Hi,
I'm using URLDownloadToFile to download a file. The point that this downloading happens in the background, while the main loop runs unaffected, is a point I really enjoy about this function.
However, I have some problems to determine wether the download is finished. The return code obviousluy only indicates whether the download is started.
Can anybody give me clue what\'s the best way to determine whether the download is finished?
yours
sberK
function download(from$,to$)
if file exist(to$) then delete file to$
load dll "urlmon",1
LOAD DLL "wininet",2
failed_delete_cache = CALL DLL(2,"DeleteUrlCacheEntryA", from$)
failed=CALL DLL(1,"URLDownloadToFileA",0,from$,to$,0,0)
delete dll 2
delete dll 1
endfunction faile