URLDownloadToFile

CARLOS ATUNCAR
Posts: 41
Joined: Thu Sep 17, 2015 11:40 pm

Re: URLDownloadToFile

Post by CARLOS ATUNCAR »

Jeff 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?
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 you
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: URLDownloadToFile

Post by Enrico Maria Giordano »

This is a working sample:

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"
EMG
Post Reply