Using #include Directive with Windows Resource Compiler (80945)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
- Microsoft Win32 Software Development Kit (SDK) 3.5
- Microsoft Win32 Software Development Kit (SDK) 3.51
- Microsoft Win32 Software Development Kit (SDK) 4.0
This article was previously published under Q80945 SUMMARY
The Windows Resource Compiler supports many standard C language
preprocessor directives such as "#define" to define symbolic
constants, and "#include" to include header and other resource files.
If an application developed for the Windows environment has more than
one resource, each resource can be maintained in a separate file.
Then, use the #include directive to direct the Resource Compiler to
build all the resources into one output file. Using this technique
prevents one resource file from becoming unmanageably large with an
overwhelming number of resources.
It is important to note that the Resource Compiler treats files with
the .C and .H extensions in a special manner. It assumes that a file
with one of these two extensions does not contain resources. When a
file has the .C or .H file extension, the Resource Compiler ignores
all lines in the file except for preprocessor directives (#define,
#include, and so forth). Therefore, a file that contains resources
that is included in another resource file should not have the .C or .H
file extension.
Modification Type: | Major | Last Reviewed: | 3/6/1999 |
---|
Keywords: | KB80945 |
---|
|