URLDownloadtofile
URLDownloadtofile
Hallo hab mal eine dumme frage aber ich finde nichts in der hilfe über die windows APIs. URLDownloadtofile ist ja für die Konsole. Gibt es auch eine Alternative für Windows? Wenn ja bräuchte ich auch den Syntax, wenn nicht könntet ihr mir dann den syntax von urldownloadtofile posten?
Code: Alles auswählen
HRESULT URLDownloadToFile(
LPUNKNOWN pCaller,
LPCTSTR szURL,
LPCTSTR szFileName,
DWORD dwReserved,
LPBINDSTATUSCALLBACK lpfnCB
);
Code: Alles auswählen
hResult.l = URLDownloadToFile_(0, URL.s, Dateiname.s, 0, 0)
Now these points of data make a beautiful line.
And we're out of beta. We're releasing on time.
And we're out of beta. We're releasing on time.
Was ist daran falsch?
Code: Alles auswählen
URLDownloadToFile_(0,"http://home.arcor.de/markus_goerlich/andromeda_ascendant_small.jpg","C:\PureBasic\",0,0)
-
- Beiträge: 556
- Registriert: 04.09.2004 22:23
- Kontaktdaten:
-
- Beiträge: 696
- Registriert: 26.09.2004 20:17
- Kontaktdaten:
Hab den Thread nochmal ausgegraben.
so wäre richtig:
Das Ziel muss eine Datei sein, kein Verzeichnis.zigapeda hat geschrieben:Was ist daran falsch?Code: Alles auswählen
URLDownloadToFile_(0,"http://home.arcor.de/markus_goerlich/andromeda_ascendant_small.jpg","C:\PureBasic",0,0)
so wäre richtig:
Code: Alles auswählen
URLDownloadToFile_(0,"http://home.arcor.de/markus_goerlich/andromeda_ascendant_small.jpg","C:\PureBasic\Bild.jpg",0,0)
Now these points of data make a beautiful line.
And we're out of beta. We're releasing on time.
And we're out of beta. We're releasing on time.