Sign in Join
FPDoc Onlineexperiment

resource unit

Contains base classes for resource handling

This unit contains base classes needed to work with resources.

Single resources are represented by an instance of a TAbstractResource descendant. They are grouped in a TResources instance which can be read (written) to (from) a stream via a TAbstractResourceReader (TAbstractResourceWriter) descendant.

TGenericResource provides a basic implementation of TAbstractResource.

Classes and records

ENoMoreFreeIDsExceptionclassThere are no more free IDs to use as name for a resource
EResourceDescChangeNotAllowedExceptionclassDescription is not allowed to change
EResourceDescTypeExceptionclassWrong description type error
EResourceDuplicateExceptionclassThere is already a resource with same type, name and language ID
EResourceExceptionclassBase class for resource-related exceptions
EResourceLangIDChangeNotAllowedExceptionclassLanguage ID is not allowed to change
EResourceNotFoundExceptionclassNo resource matching the search criteria is found
EResourceReaderExceptionclassBase class for resource reader-related exceptions
EResourceReaderNotFoundExceptionclassNo suitable resource reader was found
EResourceReaderUnexpectedEndOfStreamExceptionclassThe stream ended prematurely
EResourceReaderWrongFormatExceptionclassThe stream is not in the format the reader supports
EResourceWriterExceptionclassBase class for resource writer-related exceptions
EResourceWriterNotFoundExceptionclassNo suitable resource writer was found
TAbstractResourceclassBase abstract resource class
TAbstractResourceReaderclassBase abstract resource reader class
TAbstractResourceWriterclassBase abstract resource writer class
TGenericResourceclassGeneric resource class
TResourceDescclassA resource description (type or name)
TResourcesclassA collection of resources

Types

TDescTypeenumerationThe type of a resource type or name
TLangIDtypeA resource language ID
TResIDtypeA resource type or name in ID form
TResNametypeA resource type or name in string form
TResourceClasstypeResource metaclass
TResourceReaderClasstypeResource reader metaclass
TResourceWriterClasstypeResource writer metaclass

Constants

CREATEPROCESS_MANIFEST_RESOURCE_IDconstant
ISOLATIONAWARE_MANIFEST_RESOURCE_IDconstant
ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_IDconstant
MAXIMUM_RESERVED_MANIFEST_RESOURCE_IDconstant
MF_DISCARDABLEconstantThe resource can be discarded if no longer needed
MF_MOVEABLEconstantThe resource can be moved
MF_PRELOADconstantThe resource is loaded with the executable file
MF_PUREconstantThe resource contains dword-aligned data
MINIMUM_RESERVED_MANIFEST_RESOURCE_IDconstant
RT_ACCELERATORconstantAccelerator table resource
RT_ANICURSORconstantAnimated cursor resource
RT_ANIICONconstantAnimated icon resource
RT_BITMAPconstantBitmap resource
RT_CURSORconstantSingle cursor resource
RT_DIALOGconstantDialog resource
RT_DLGINCLUDEconstantNever present in compiled form
RT_DLGINITconstant
RT_FONTconstantSingle font resource
RT_FONTDIRconstantFont directory resource
RT_GROUP_CURSORconstantCursor resource
RT_GROUP_ICONconstantIcon resource
RT_HTMLconstantHTML resource
RT_ICONconstantSingle icon resource
RT_MANIFESTconstantWindows XP Side-by-Side Assembly XML manifest
RT_MENUconstantMenu resource
RT_MESSAGETABLEconstantMessage table resource
RT_PLUGPLAYconstantPlug and Play resource
RT_RCDATAconstantApplication-defined resource (raw data)
RT_STRINGconstantString table resource
RT_VERSIONconstantVersion resource
RT_VXDconstantVXD resource

Resource strings

SDescChangeNotAllowedresource string
SLangIDChangeNotAllowedresource string
SReaderNotFoundExtresource string
SReaderNotFoundProberesource string
SResDuplicateresource string
SResourceNotFoundresource string
SResourceNotFoundLangresource string
SWriterNotFoundExtresource string

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.