Greetings, I'm trying to walk that function but only returns 0 me and I do not download the file Might proporcinarle an example of implementation. we thank youJeff Barnes wrote:I'm using URLDownloadToFile to download a file from my website and it works well.
How can I delete the file from my website after I've downloaded it?
URLDownloadToFile
-
- Posts: 41
- Joined: Thu Sep 17, 2015 11:40 pm
Re: URLDownloadToFile
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: URLDownloadToFile
This is a working sample:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
? URLDOWNLOADTOFILE( 0, "http://www.emagsoftware.it/logo.gif", "logo.gif" )
RETURN NIL
DLL FUNCTION URLDOWNLOADTOFILE( pCaller AS LONG, cUrl AS LPSTR, cFileName AS LPSTR, nReserved AS DWORD, nFnCB AS LONG ) AS LONG;
PASCAL FROM "URLDownloadToFileA" LIB "urlmon.dll"