RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStream.WriteComponentRes Method

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

Pascal
procedure WriteComponentRes(const ResName: string; Instance: TComponent);
C++
__fastcall WriteComponentRes(const AnsiString ResName, TComponent * Instance);

WriteComponentRes is used internally in the 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 in a resource-file format. 

WriteComponentRes calls WriteDescendentRes, passing in nil (Delphi) or NULL (C++) 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!