Previous: $R: Range-Checking Switch To the Table of Content Next: $S: Stack-Overflow Checking Switch

- 3.2.21 -
Compiler Directives
Switch and Parameter Directives

$R: Resource File

Targets: MS-DOS, OS/2, Win32


Compiler directives

Specifies the name of a resource file to be included in an application or library. The named file must be valid resource file (Windows 32-bit or OS/2 format) and the default extension for filenames is .RES.

Syntax:
  {$R filename.RES}
Remarks:
When a {$R filename} directive is used in a unit, the specified file name is simply recorded in the resulting unit file. No checks are made at that point to ensure that the filename is correct and that it specifies an existing file.

Win32 target:
Old 16-bit Windows resource format is not allowed.


Previous: $R: Range-Checking Switch To the Table of Content Next: $S: Stack-Overflow Checking Switch
$R: Range-Checking Switch Table of Content $S: Stack-Overflow Checking Switch

- 3.2.21 -