/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
URLDownloadToFile
Fra : Terje


Dato : 12-04-03 19:33

Hei alle.
Hva er galt med denne koden? Den virker utmerket fra VB, men når den
kompileres så henger programmet og ingenting blir lastet ned.


Private 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

Private Const ERROR_SUCCESS As Long = 0

Public Function DownloadFile(sSourceUrl As String, _
sLocalFile As String) As Boolean


DownloadFile = URLDownloadToFile(0&, _
sSourceUrl, _
sLocalFile, _
0&, _
0&) = ERROR_SUCCESS

End Function


terje



 
 
Søg
Reklame
Statistik
Spørgsmål : 177490
Tips : 31966
Nyheder : 719565
Indlæg : 6408444
Brugere : 218886

Månedens bedste
Årets bedste
Sidste års bedste