Previous: 3.2.20. $R: Range-Checking Switch To the Table of Contents Next: 3.2.22. $S: Stack-Overflow Checking Switch
3.2.20. $R: Range-Checking Switch Table of Contents 3.2.22. $S: Stack-Overflow Checking Switch

- 3.2.21. -
Table of Contents
3. Compiler Directives
3.2. Switch and Parameter Directives
3.2.21. $R: Resource file


3.2.21. $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: 3.2.20. $R: Range-Checking Switch To the Table of Contents Next: 3.2.22. $S: Stack-Overflow Checking Switch
3.2.20. $R: Range-Checking Switch Table of Contents 3.2.22. $S: Stack-Overflow Checking Switch

- 3.2.21. -