FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour URLDownloadToFile
Posts: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: URLDownloadToFile
Posted: Thu Oct 20, 2016 12:44 AM
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
Carlos Atuncar - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: URLDownloadToFile
Posted: Thu Oct 20, 2016 08:51 AM
This is a working sample:

Code (fw): Select all Collapse
#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

Continue the discussion