Visual Basic Forum

Visual Basic Forum
für VB6 und VB.NET Programmierer
 
RegistrierenRegistrieren  LoginLogin
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten
Autor
Nachricht
mkm394_
Tutorial Leser
Tutorial Leser

Anmeldedatum: 08.12.2007
Beiträge: 68

DownloadtoAFile Api Problem
Verfasst am: 14.04.2008, 15:54

Also ich habe i wie das Problem, dass der Download nicht klappt, weis einer warum?

Code:
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 Sub Form_Load()
Dim sURL As String
Dim sPath As String
   

sURL = "http://********.******.de/**_**.exe"
sPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\*****\*****\InstallPath")

lResult = URLDownloadToFile(0, sURL, sPath, 0, 0)

End Sub


Also an dem Pfad liegt es nciht, der geht^^

naja thx schonmal
lg
 
ZiG_
Überflieger
Überflieger

Anmeldedatum: 07.03.2007
Beiträge: 1248


Verfasst am: 14.04.2008, 16:04

AV blockt evt. die Datei wegen der URLDownloadToFile Api.
Wer nicht auf seine Weise denkt, denkt überhaupt nicht. (Oscar Wilde)
 
mkm394_
Tutorial Leser
Tutorial Leser

Anmeldedatum: 08.12.2007
Beiträge: 68


Verfasst am: 14.04.2008, 16:07

hmm ne funktioniert acuh nciht wenn ich AV aus habe.. hatte ich acuh erst gedacht thx trotzdem
 
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten
 
 Verwandte Themen   Aufrufe   Letzter Beitrag 
Keine neuen Beiträge Visual Basic Download ? 1999 03.05.2011, 08:38
Keine neuen Beiträge Api Download in Prozent + Kb anzeige + Progrezzbar 1463 21.10.2007, 14:03
Keine neuen Beiträge Download 1487 30.08.2007, 16:45
Keine neuen Beiträge Download mit Internet Explorer Object 1028 18.08.2008, 20:00
Keine neuen Beiträge Visual Basic 6 download 4326 26.05.2007, 12:51
 


[ Time: 0.1211s ][ Queries: 88 (0.0591s) ][ GZIP on - Debug on ]