by Ihab Abu Hilal (4 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 31st January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Download File From The Internet (This code will allow you very easily to download a file from the internet).
API Declarations
"URLDownloadToFileA" (ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then DownloadFile = True
End Function
Private Sub Form_Load() 'replace the first argument with the URL of the file you want to download, ' and the second argument with the local file you want to save this file to. ret = DownloadFile("http://www25.brinkster.com/ihab/arabmap/so1over.gif", _
"c:\filename.gif")
End Sub
No comments have been posted about Download File From The Internet (This code will allow you very easily to download a file from the i. Why not be the first to post a comment about Download File From The Internet (This code will allow you very easily to download a file from the i.