NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorLucas
    • CommentTimeNov 20th 2013
     
    Hello,

    I need to download a specific file from a website and have to save it into a local directory on my harddisk. Does anyone has a solution please?

    TIA
    Lucas
    •  
      CommentAuthorAbbougaga
    • CommentTimeNov 21st 2013
     
    Hi Lucas,

    Personally, I'm very happy with the win32 API: URLDownloadToFile
    e.g.
    IF URLDownloadToFile( 0, "http://www.thewebsite.com/thefile.zip", "c:\mydir\thefile.zip", 0, 0 ) != S_OK
    Alert( "Error downloading file.")
    EndIf
    and here is the wrapper:
    _DLL FUNCTION URLDownloadToFile( pCaller As long, cURL As String, cFileName As String,;
    dwResv As dword, lpfnCB As long) AS INT PASCAL:urlmon.URLDownloadToFileA

    A more specific example can be found in \wntk4hrb\ntkrad\activexdemo\flashdemoOO.prg
    Hope this helps.
    Ab
    •  
      CommentAuthorLucas
    • CommentTimeNov 23rd 2013
     
    Many thanks Ab, I will try it.

    Lucas