Witam, mam problem z odczytaniem komponentu z pliku :
function TForm1.FileToComponent(Component : TComponent):String; //ReadToFile
begin
tbar := TFileStream.Create('SetButton.dat',fmOpenRead);
tbar.ReadComponent(Component);
tbar.Free;
end;
{ function TForm1.ComponentToFile(Component : TComponent):String; //WriteToFile
begin
tbar := TFileStream.Create('SetButton.dat',fmCreate);
tbar.WriteComponent(Component);
tbar.Free;
end; }
Jest taki blad : Class TToolButton not found !.
Co mam zrobic ?