Autor Beitrag
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Do 07.10.04 20:07 
Hallo,

Für ein Projekt muss mein Programm etwas bestimmtes zu einer bestimmten Uhrzeit durchführen. Wie realisiere ich das am besten? Ein Timer wäre natürlich möglich, allerdings verbraucht der schon einiges an Speicher. Was für möglichkeiten gibts noch?
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 07.10.04 20:12 
threads

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure schleife;
begin
  while true do
  begin
    sleep(1000);
  end;
end;


var tid: cardinal;
createthread(nil,0,@schleife,nil,0,tid);
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: Do 07.10.04 20:26 
Karlson hat folgendes geschrieben:
Hallo,

Für ein Projekt muss mein Programm etwas bestimmtes zu einer bestimmten Uhrzeit durchführen.


Sowas nennt man Taskplaner. Ist in Windows sein Jahren dabei. Man muß sein Programm einfach da eintragen, dann die Uhrzeit wählen und ab gehts.

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Do 07.10.04 20:31 
Vielleicht reicht es einfch in einer Idle-Funktion die Systemzeit ständig abzufragen.

_________________
Linux und OpenSource rulez!