About the author
Delphi 8 provides an easy way to serialize any VCL.NET or any NET framework object.
The following code fragment shows how easy it is to serialize a .NET framework class object, a System.Windows.Forms.Button.
In Delphi speak, it's known as streaming, and it's been available in Delphi since 1994 or 1995. Now, the power of streaming any VCL.NET object is in your hands!
Note that the format of VCL streaming and .NET serialization is different and you should not mixed them together!
var F: TFileStream; MyButton: Button;begin F := TFileStream.Create('C:\TEMP\SERIALIZE.TXT', fmCreate); MyButton := Button.Create; F.WriteComponent(MyButton); MyButton.Free; F.Free;end;
Learn the command line used to compile System.pas in Delphi