Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Resource File Helper Routines

Project: Resource File Unit

Unit: PJResFile.

These helper routines are to assist in manipulating resource identifiers. They can be useful when working with Windows API routines as well as the classes provided in this unit. They are:

IsIntResource

Applies to: ~>1.0

function IsIntResource(const ResID: PChar): Boolean;

This is a clone of the IS_INTRESOURCE macro defined on MSDN that checks if a resource identifier is ordinal or a string. Complements the MakeIntResource “macro” defined in Windows.pas.

Parameter:

Returns:

IsEqualResID

Applies to: ~>1.0

function IsEqualResID(const R1, R2: PChar): Boolean;

Checks for equality of two resource identifiers. To be equal the identifiers either be ordinal and have the same value or must both point to strings that have the same text when case is ignored.

Parameters:

Returns:

ResIDToStr

Applies to: ~>1.0

function ResIDToStr(const ResID: PChar): string;

Converts a resource identifier into its string representation as defined on MSDN.

Parameter:

Returns: