|
-
Nov 25th, 2000, 04:41 AM
#8
PowerPoster
Downloading status.
Juz found that this API function can not return the downloading status, I mean is the percentage of the entire file being downloaded into the local PC.
Is there anyway to retrieve this information? Because it will a good information to the user.
Originally posted by krigans
hi,
try this piece of code
declaration
Public Declare Function URLDownloadToFile Lib "urlmon" Alias _
"URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, _
ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) _
As Long
'Code
Private Sub Command1_click()
dim llRetVal as Integer
llRetVal = URLDownloadToFile(0, SourceFileName, _
TargetFileName, 0, 0)
End Sub
if any problem call back this code will download the file on clicking on the command button afte running the example check in ur system it wont pop up any message
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|