Seite 1 von 2
Dateien aus dem web downloaden
Verfasst: 16.11.2005 22:55
von Outlaw
Hallo!
Kann man mit PureBasic dateien aus dem Internet downloaden? Also ich gebe den link an und das programm läd die datei dann auf meinen Desktop oder in ein ordner, welchen ich vorher gewählt habe.
Mfg Alex
Verfasst: 17.11.2005 00:01
von Franky
Jup, das geht, und zwar mit
URLDownloadToFile_(0,adresse,speichername,0,0)
Weiß jetzt allerdings net, wofür die Zahlen sind. Schau in der Api nach
Verfasst: 17.11.2005 14:33
von AND51
Diesen Befehl habe ich auch mal bentzt, und dann meldete mein AntiVirenprogramm AntiVir, dass mein Programm ein Virus vom Typ "TROJAN/Downloader" ist... Kann man das umgehen?
Woran liegt das? Ich will nicht diesen Befehl in meinen Applikationen benutzen um meine "Kunden", bzw. User zu verunsichern oder gar zu verägern...

Verfasst: 17.11.2005 15:12
von Tafkadasom2k5
Davon mal ganz abgesehen das du mit dieser API ned mehr Plattformunabhängig bist.
Wie das genau geht weis ich ned. ^^
Aber APIs sind also für LinuxUser doch schon sher problematisch (also WinAPIs)
Gr33tz
Der Marc
Verfasst: 17.11.2005 16:00
von Kiffi
> Davon mal ganz abgesehen das du mit dieser API ned mehr
> Plattformunabhängig bist.
Outlaw hat nichts davon geschrieben, auf welcher Plattform das Ding laufen soll.
Grüße ... Kiffi
Verfasst: 17.11.2005 16:15
von Outlaw
Auf Windows sollte das laufen

ich habe es probier und er downloadet es auch weiss halt nur net für was die zahlen sind

Verfasst: 17.11.2005 16:32
von Kiffi
> Auf Windows sollte das laufen
dachte ich mir
> ich habe es probier und er downloadet es auch weiss halt nur net für was
> die zahlen sind
API-Guide hat geschrieben:· pCaller
Address of the controlling IUnknown interface of the calling Microsoft®
ActiveX® component (if the caller is an ActiveX component). If the calling
application is not an ActiveX component, this value can be set to NULL.
Otherwise, the caller is a Component Object Model (COM) object that is
contained in another component (such as an ActiveX control within the
context of an HTML page). This parameter represents the outermost
IUnknown of the calling component. The function attempts the download
within the context of the ActiveX client framework and allows the caller's
container to receive callbacks on the progress of the download.
· szURL
Address of a string value containing the URL to be downloaded. Cannot be
set to NULL.
· szFileName
Address of a string value containing the name of the file to create for bits
that come from the download.
· dwReserved
Reserved. Must be zero.
· lpfnCB
Address of the caller's IBindStatusCallback interface. URLDownloadToFile
calls this interface's IBindStatusCallback::OnProgress method on a
connection activity, including the arrival of data.
IBindStatusCallback::OnDataAvailable is never called. Implementing
IBindStatusCallback::OnProgress allows a caller to implement a user
interface or other progress monitoring functionality. It also allows the
download operation to be canceled by returning E_ABORT from the
IBindStatusCallback::OnProgress call. This can be set to NULL.
Alle Klarheiten beseitigt?
Grüße ... Kiffi
Verfasst: 17.11.2005 22:27
von AND51
Kiffi hat geschrieben:Alle Klarheiten beseitigt?
Nein. Hat denn keiner eine Antwort auf meine Frage?
Verfasst: 17.11.2005 22:55
von Laurin
Ich benutze auch AntiVir, aber bei mir kommt keine solche Meldung. Ist vielleicht die heuristische Suche zu hoch eingestellt?
Verfasst: 17.11.2005 22:59
von Kiffi
AND51 hat geschrieben:Kiffi hat geschrieben:Alle Klarheiten beseitigt?
Nein.
wie man an meinem Quoting sieht, war das ja auch weniger eine Antwort auf
Deine Frage.
> Hat denn keiner eine Antwort auf meine Frage?
ich habe (wie Laurin) selber AntiVir installiert und kann Dein Problem nicht nachvollziehen.
Grüße ... Kiffi