RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.ObjectTextToResource Function

Converts a symbolic text representation of an object into an internal binary representation.

Pascal
procedure ObjectTextToResource(Input: TStream; Output: TStream); overload;
procedure ObjectTextToResource(Input: TStream; Output: TStream; var OriginalFormat: TStreamOriginalFormat); overload;
C++
ObjectTextToResource(TStream Input, TStream Output);
ObjectTextToResource(TStream Input, TStream Output, TStreamOriginalFormat OriginalFormat);

Classes

Call ObjectTextToResource to create a component from the representation of an object as it is saved in module resource files. ObjectTextToResource is the same as ObjectTextToBinary, except that it skips over any object headers and includes a resource header instead. Use the ReadComponentRes method of the output stream to obtain the actual object. 

ObjectTextToResource converts the text version of a form that can be seen by right clicking the form and choosing View As Text into the binary version which is stored in a form file. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!