Autor Beitrag
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: So 11.06.06 09:32 
Hallo!

Ich wollte einen Thread mit CreateThread erstellen, mein Delphi sagt mir aber immer 'Variable required'..

Hier mal der Code wie ich ihn erstellen will:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
// Erstellen:
begin
  ...
  CreateThread(nil, 0, @HidePanel, nil, 0, TID); // TID: Cardinal
  ...
end;

// ThreadProc:
procedure HidePanel;
begin
  Sleep(1000);
  FrmClientInfo.Panel1.Visible := False;
end;

// EDIT: So gehts jetzt


:nixweiss:


greetz


EDIT: Hat sich erledigt, ich hab die Prozedur außerhalb der Form geschrieben..

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.