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.
#define (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
 
                  The Resource Compiler #define Directive
 
#define name value
 
The #define directive assigns the given value to the specified name. All
subsequent occurrences of the name are replaced by the value.
 
Field  Description
────────────────────────────────────────────────────────────────────────────
 
name   Specifies the name to be defined. This value is any combination of
       letters, digits, and punctuation.
 
value  Specifies any integer, character string, or line of text.
 
Example
 
This example assigns values to the names "NONZERO" and "USERCLASS".
 
#define     NONZERO     1
#define     USERCLASS   "MyControlClass"
 
See Also
 
#ifdef, #ifndef, #undef