rc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
#include (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
 
                  The Resource Compiler #include Directive
 
#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-definition file. Only the #define statements in the
specified file are processed; all other statements are ignored.
 
Field     Description
────────────────────────────────────────────────────────────────────────────
 
filename  Specifies the MS OS/2 name of the file to be included. This value
          must be an ASCII string. If the file is in the current directory,
          the string must be enclosed in double quotation marks; if the file
          is in the directory specified by the INCLUDE environment variable,
          the string must be enclosed in less-than and greater-than
          characters (<>). 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 the INCLUDE environment variable.
 
Example
 
This example processes the header files os2.h and headers\mydefs.h while
compiling the resource-definition file.
 
#include <os2.h>
#include "headers\mydefs.h"
 
See Also
 
#define, RCINCLUDE