Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 794 Bytes

TPJResourceFile-LoadFromFile.md

File metadata and controls

25 lines (14 loc) · 794 Bytes

LoadFromFile method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

procedure LoadFromFile(const FileName: TFileName);

Loads a resource file from a named file. New TPJResourceEntry objects are created for each resource in the file.

Any TPJResourceEntry objects that existed before calling LoadFromFile are freed. You should be careful not to access any existing references to such objects after calling LoadFromFile.

Parameter:

  • FileName: The name of the file from which to load the resource data.

Raises:

Exceptions are raised if the file does not exist or does not contain a valid resource file.