Function to download a defined file from a homepage ?

User avatar
Baxajaun
Posts: 974
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia
Been thanked: 1 time

Re: Function to download a defined file from a homepage ?

Post by Baxajaun »

jesusdelamora
Posts: 20
Joined: Fri Apr 25, 2014 3:05 pm

Re: Function to download a defined file from a homepage ?

Post by jesusdelamora »

Antonio Linares wrote:

Code: Select all | Expand

#include "fivewin.ch"    function Main()            LOCAL   nRet                       nRet := DOWNLOADFILE( "http://www.yoursite.it/index.html", "C:\index.html" )                       MsgStop( nRet )    RETURN NIL    #pragma BEGINDUMP    #include <Windows.h>    #include <hbapi.h>    #include <urlmon.h>    HB_FUNC( DOWNLOADFILE )    {            HRESULT hr;                       hr = URLDownloadToFile( NULL, hb_parc( 1 ), hb_parc( 2 ), 0, NULL ) ;                       hb_retnl( hr ) ;    }    #pragma ENDDUMP 





GRACIAS POR LA INFORMACION
Post Reply