Czy ktos moglby mi pomoc w rozwiazaniu problemu jakim jest stworzenie komponentu opartego na klasie dziedziczonej TThread. Przykladowy kod komponentu wyglada tak:
unit Myhread;
interface
uses
SysUtils, Classes;
type
TMyhread = class(Thread)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Kriss', [TMyhread]);
end;
end.
Problem polega w lini
TMyhread = class(Thread)
gdyz kompilator wyrzuca mi blad ze nie jest to klasa
TComponent
, oczywiscie nie moge z niej skorzystac gdyz moja klasa TMyThreaddziedziczy metody z klasy watkow TThread
Prosze o jaknajszybsza pomoc w rozwiazaniu tego problemu.
Zgory dziex.