RAD Studio VCL Reference
TStream.ReadResHeader Method

Reads a resource-file header from the stream.

procedure ReadResHeader;
__fastcall ReadResHeader();

Do not call ReadResHeader directly. It is called automatically by ReadComponentRes before reading a component from a resource file. 

After reading the resource-file header, ReadResHeader moves the current position of the stream to just beyond the header. If the stream does not contain a valid resource-file header, ReadResHeader raises an EInvalidImage exception. 


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