Autor Beitrag
strahlemann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinXP
Delphi7
BeitragVerfasst: So 10.12.06 18:19 
Hello und guten Abend. ich würde gern irgendwie rausfinden ob da grad ein Internetverbindung da ist wenn ich das Programm ausführ (Das jetzt grad eine da ist, weiß ich selber, sonst könnt ich das jetzt nicht schreiben). Es handelt sich dabei nämlich um ein Programm, dass beim Start eine Internetseite auf der HD speichert. Blöd iwt nur, wenn da keine internetverbindung da ist, probiert er es trotzdem und zwar solange bis die datei vollstaändig gespeichert ist --> Sonst tut sich da nichts.
Schade

Sieht aus wie folgt
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.FormCreate(Sender: TObject);
var responsestream: TFileStream;
begin
     responsestream:=TFileStream.Create('C:\fm4.htm', fmCreate);
     IdHTTP1.Get('http://fm4.orf.at/trackservicepopup/', responsestream);
     responsestream.Free;

...

   //und was da jetzt noch kommt, das tut er nicht. Buhuhu
end;


Besten Dank im Vorraus

_________________
Es gibt Aufgaben die zu erfüllen wären,
den traurigen die Welt erklären (Tomte)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 10.12.06 18:34