INFO: Only One .RC File Is Permitted Per ProjectLast reviewed: October 7, 1997Article ID: Q76714 |
The information in this article applies to:
SUMMARYThe Microsoft Visual C++ development environment supports only one resource (.RC) file in each project. An attempt to add a second resource file to a project causes the environment to display an error. In Microsoft Visual C++ for Windows, versions 1.0 through 1.52, and Microsoft Visual Workbench 32-bit Edition, version 1.0:
You can only add one Resource Script. Would you like to replace the current script? This message box includes buttons labeled "Yes" and "No."In Microsoft Visual Workbench 32-bit Edition, versions 2.x and 4.0:
Multiple .rc files exist in the project. Only one can be marked as included in the build. The others will be excluded from the build. MORE INFORMATIONTo store resources in more than one file, create a master .RC file that uses the #include preprocessor directive to include resources from the other files. For example, consider the case in which the RC1.RC and RC2.RC files store resources for a project. Create a master .RC file called PROJ.RC that contains the following text:
#include "RC1.RC" #include "RC2.RC"This file instructs the resource file to compile all resources contained in the other .RC files into the application's resources while the project only contains one .RC file.
REFERENCESVisual C++ Technical Note 35: "Using Multiple Resource Files and Header Files with Visual C++" Keywords : VwbIss Version : WIN3X:1.0,1.5,1.51,1.52;WINNT:1.0,2.0,2.1,4.0,4.1,4.2,5.0; Platform : NT WINDOWS Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |