Class TResourceStream (unit BmpRes)

Inherits from

THandleStream

Stream for reading a resource.

Constructors


constructor Create(Instance: THandle; ResName, ResType: PChar);

Open a file to access the resources.


Functions

destructor Destroy;

Close the file handle when we destroy the stream.

function Seek(Offset: Longint; Origin: Word): Longint;

Create the illusion that the stream starts at zero and has the size of the resource.

Properties

Events

Variables

fEndPos : LongInt;


fStartPos : LongInt;



Constructors


constructor Create(Instance: THandle; ResName, ResType: PChar);

Open a file to access the resources. The file position is automatically set to the start of the resource, but the TResourceStream object makes it appear that the resource starts at position zero, and that the size of the stream is the size of the resource.


Functions


destructor Destroy;

Close the file handle when we destroy the stream.


function Seek(Offset: Longint; Origin: Word): Longint;

Create the illusion that the stream starts at zero and has the size of the resource.


Properties


Events


Variables


fEndPos : LongInt;


fStartPos : LongInt;