[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TResourceFile.Init

Instantiate a new instance.

Declaration

Source position: objects.pp line 503

constructor TResourceFile.Init(

  AStream: PStream

);

Description

Initinstantiates a new instance of a TResourceFileobject. If AStreamis not nil then it is considered as a stream describing an executable image on disk.

Initwill try to position the stream on the start of the resources section, and read all resources from the stream.

Errors

None.

See also

TResourceFile.Done

  

Destroy the instance and remove it from memory.