### Resource Compiler - include Directive (OS/2)

Syntax

>     #include filename

The include directive causes RC to process the file specified in the filename field. This file should be a header file that defines the constants used in the resource script file. Only the #define directives in the specified file are processed; all other statements are ignored by the Resource Compiler.

filename | Specifies the name of the file to be included. This value must be an ASCII string enclosed either in double quotation marks (if the file is in the current directory) or in less-than and greater-than characters (< >) (if the file is in the directory specified by -i command-line options or by the INCLUDE environment variable). You must give a full path enclosed in double quotation marks if the file is not in the current directory or in the directory specified by -i command-line options or by the INCLUDE environment variable.

Comments
The filename field is handled as a C string. Therefore, you must include two backslashes wherever one is required in the path. (As an alternative, you can use a single forward slash (/) instead of two backslashes.)

Example
This example processes the header files OS2.H and HEADERS\MYDEFS.H\I while compiling the resource script file.

>     #include <os2.h>
>     #include "headers\\mydefs.h\\i"

Note: the OS2.H header file can be substituted with any header file.

Preprocessor Directives

Preprocessor Directive - File Inclusion (#include)
Resource Script Files
Resource Compiler - An Overview
Resource Compiler - An Overview