RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStream.ReadResHeader Method

Reads a resource-file header from the stream.

Pascal
procedure ReadResHeader;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!