Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us



Reads components and their properties from a stream in a Windows resource file format.


function ReadComponentRes(Instance: TComponent): TComponent;



ReadComponentRes is called automatically by the global routine ReadComponentResFile. It can also be called directly if the current position of the stream points to a component written using the WriteComponentRes method.


ReadComponentResFile creates a file stream object, which then calls its ReadComponentRes method.


ReadComponentRes first calls the ReadResHeader method to read a resource header from the stream. If the stream does not contain a resource header at the current position, ReadResHeader will raise an EInvalidImage exception. ReadComponentRes then calls ReadComponent to read the properties that must be set on Instance.

        © 2003 - 2020 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Sep 29, 2020