RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStream.FixupResourceHeader Method

Patches the resource header for a resource that has been written to the stream.

Pascal
procedure FixupResourceHeader(FixupInfo: Integer);
C++
__fastcall FixupResourceHeader(int FixupInfo);

Do not call FixupResourceHeader, it is used internally. The WriteDescendentRes method calls FixupResourceHeader after writing a component to the stream. This method then uses the current position to determine the size of the resource just written and adjust the resource header accordingly. 

The FixupInfo parameter is the value returned by WriteResourceHeader when it writes the resource header (before WriteDescendentRes streams out the component). 

 

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