Jo ok. Vielen Dank.
Allerdings funktionieren andere Sachen nicht.
Delphi-Quellcode:
program Project1;
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
var
timer: TTimer;
{$R *.res}
procedure timerOnTimer(Sender: TObject);
begin
ShowMessage('Hallo');
end;
begin
Application.Initialize;
Application.Run;
timer := TTimer.Create(nil);
timer.Interval := 1000;
timer.Enabled := True;
repeat
Application.HandleMessage;
until Application.Terminated;
end.
Das Programm bleibt an aber es kommt kein 'Hallo'
Das mit dem Timer ist jetz nur ein Test um zu gucken ob auch andere procedure später aufrufbar sind.
Klappt aber nicht
Chuck Norris has counted to infinity ... twice!