Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: 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 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: 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 ! :D
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mi 28.08.02 13:34 
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 29.08.02 01:00 
hibbert hat folgendes geschrieben:
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 ! :D


Eigentlich sagt die Definition von DeCodeGuru doch alles aus. Aber hier halt ein kleines Miniatur-Beispiel:
ausblenden Quelltext
1:
UrlDownloadToFile(nil, PChar('http://dateien.desk-work.de/bilder/smilies/coder.gif'), PChar('c:\coder.gif'), 0, nil)					


Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 29.08.02 12:54 
DANKE !!!!! :D :D :D
mfg hibbert[/b]
XPert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: 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 :lol:
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 29.08.02 15:30 
Hi

hiermit sollte es gehen:
ausblenden 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
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
XPert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: Do 29.08.02 15:47 
[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
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: 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
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: Do 29.08.02 15:50 
Titel: Mist Board
Warum steht mein eintrag nun 2 mal hier? ich habe doch nur ein mal uaf abschicken geklickt! :cry: :cry: :cry:
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 29.08.02 15:51 
Hi,
du hast mit Sicherheit vergessen die Unit URLMon einzubinden :P

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 29.08.02 15:52 
uses
URLMon, ShellApi;

Wäre auf www.swissdelphicente.../showcode.php?id=412
gestanden....
XPert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: Do 29.08.02 15:54 
Danke!!!!! :D :D :D
aber was muss in der unit stehen?????
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 29.08.02 15:58 
In welcher Unit??
XPert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: Do 29.08.02 16:01 
Die Unit

UrlMon
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: 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". :mrgreen:

_________________
Viele Grüße
Jakob
XPert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Windows 98/00/Me/XP
D6 Pers
BeitragVerfasst: Do 29.08.02 16:09 
Vielen, vielen vielen Dank euch allen! Es funktioniert! Jetzt kann ich meinen Editor vermarkten! *g*


MmfG Fabian Schweers :lol:

MmfG= MitmegafreundlichenGrüßen;
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 29.08.02 16:12 
Was ist dass denn für ein Editor user defined image

Gewisse Editoren gibt es nämlich wie Sand am mehr :?

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!