Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TStream.WriteComponentRes
Top 

TStream
Writes components and their properties to a stream from a Windows resource file format.

procedure WriteComponentRes(const ResName: string; Instance: TComponent);

Description
WriteComponentRes is used internally in the VCL streaming system, but can also be called directly when sending data to other applications on disk. WriteComponentRes is used for streaming components that need data, such as a bitmap, or icon to be stored specifically in a Windows resource-file format.

WriteComponentRes calls WriteDescendentRes, passing in nil as the Ancestor. Therefore, WriteDescendentRes initiates the remainder of the streaming process for a component that, in this case, is not a descendant.

To read a component written with WriteComponentRes, call the ReadComponentRes method.


© 2000-2004 AidAim Software LLC Single File System: Single-file Syste