Autor |
Beitrag |
hibbert
Beiträge: 1007
WinServer2003, Win XP, Linux
D6 Pers, D05
|
Verfasst: Di 27.08.02 16:17
hi, ich möchte gerner wenn der user auf eine Button klickt, dass das programm eine .txt datei aus dem internet herunterläd.
|
|
Klabautermann
Beiträge: 6366
Erhaltene Danke: 60
Windows 7, Ubuntu
Delphi 7 Prof.
|
Verfasst: Di 27.08.02 16:21
HAllo,
welche Delphi Version verwendest du?
Willst du bestimmte Komponenten benutzen?
Oder doch lieber direckt über die API gehen?
Gruß
Klabautermann
|
|
DeCodeGuru
Beiträge: 1333
Erhaltene Danke: 1
Arch Linux
Eclipse
|
Verfasst: Di 27.08.02 18:19
am besten du verwendest URLDownloadToFile aus der URLMon. Hier haste die Definition:
Zitat: | HRESULT URLDownloadToFile( LPUNKNOWN pCaller,
LPCTSTR szURL,
LPCTSTR szFileName,
DWORD dwReserved,
LPBINDSTATUSCALLBACK lpfnCB
); |
Minimal Anformderungen sollte man noch mal angeben. Also benötigt wird mindestens Windows NT 4.0 oder Windows 95 und der IE 3.0.
_________________ Viele Grüße
Jakob
|
|
hibbert
Beiträge: 1007
WinServer2003, Win XP, Linux
D6 Pers, D05
|
Verfasst: Mi 28.08.02 13:16
ich benutze delphi 6 !
ist mir eigendlich egal was ich benutzen muss, aber es soll möglichst einfach sein. kann mir jemand vielleicht ein beispiel geben?
DANKE !
|
|
toms
Beiträge: 1099
Erhaltene Danke: 2
|
Verfasst: Mi 28.08.02 13:34
|
|
Arakis
Beiträge: 344
|
Verfasst: Do 29.08.02 01:00
_________________ Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
|
|
hibbert
Beiträge: 1007
WinServer2003, Win XP, Linux
D6 Pers, D05
|
Verfasst: Do 29.08.02 12:54
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 15:25
Titel: EXE-Datei herunterladen
Hallo!
Ich will eine *.exe-Datei aus dem Internet laden.
Wenn man einmal davon ausgeht, dass die Datei im Internet unter folgender URL zu erreichen ist: "http://www.fschweers.de/fabian/software/editor.exe"
Wie kann man diese Datei nun in folgendes Verzeichnis packen lassen:
"c:\editor\editor.exe"?
das alles soll per buttondruck passieren.
könnte man mir das für gaaaanz doooofe bitte möglichst einfach erklären, denn ich bin anfänger..........
MfG Fabian Schweers
|
|
Arakis
Beiträge: 344
|
Verfasst: Do 29.08.02 15:30
Hi
hiermit sollte es gehen:
Quelltext 1:
| UrlDownloadToFile(nil, PChar('http://www.fschweers.de/fabian/software/editor.exe'), PChar('c:\editor\editor.exe'), 0, nil) |
Aber in Zukunft solltest du zuerst die Suchfunktin nutzen. Weitere Informationen zum Downloaden gibt es nämlich schon hier.
Bis dann
_________________ Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 15:47
[Error] Unit1.pas(2 : Undeclared identifier: 'UrlDownloadToFile'
Das ist die tolle Nachricht die ich nun erhalte.........
Was ist falsch?
*verzweifeltsei*
MfG Fabian Schweers
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 15:48
[Error] Unit1.pas(28): Undeclared identifier: 'UrlDownloadToFile'
Das ist die tolle Nachricht die ich nun erhalte.........
Was ist falsch?
*verzweifeltsei*
MfG Fabian Schweers :lol:
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 15:50
Titel: Mist Board
|
|
Arakis
Beiträge: 344
|
Verfasst: Do 29.08.02 15:51
Hi,
du hast mit Sicherheit vergessen die Unit URLMon einzubinden
Bis dann
_________________ Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
|
|
toms
Beiträge: 1099
Erhaltene Danke: 2
|
Verfasst: Do 29.08.02 15:52
uses
URLMon, ShellApi;
Wäre auf www.swissdelphicente.../showcode.php?id=412
gestanden....
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 15:54
Danke!!!!!
aber was muss in der unit stehen?????
|
|
toms
Beiträge: 1099
Erhaltene Danke: 2
|
Verfasst: Do 29.08.02 15:58
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 16:01
|
|
DeCodeGuru
Beiträge: 1333
Erhaltene Danke: 1
Arch Linux
Eclipse
|
Verfasst: Do 29.08.02 16:01
ich denke, er will wissen, ob er diese units erst noch schreiben muss. wenn es so ist, dann sei beruhigt, denn diese units sind schon "vorgefertigt".
_________________ Viele Grüße
Jakob
|
|
XPert
Beiträge: 129
Windows 98/00/Me/XP
D6 Pers
|
Verfasst: Do 29.08.02 16:09
Vielen, vielen vielen Dank euch allen! Es funktioniert! Jetzt kann ich meinen Editor vermarkten! *g*
MmfG Fabian Schweers
MmfG= MitmegafreundlichenGrüßen;
|
|
Arakis
Beiträge: 344
|
Verfasst: Do 29.08.02 16:12
Was ist dass denn für ein Editor
Gewisse Editoren gibt es nämlich wie Sand am mehr
Bis dann
_________________ Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
|
|