PRB: Fatal Resource Compiler Errors RW1016 and C1023

Last reviewed: July 22, 1997
Article ID: Q122534
1.50 1.51 WINDOWS NT kbtool kbprb kberrmsg

The information in this article applies to:

  • Microsoft Resource Compiler (RC.EXE), included with Microsoft Visual C++ for Windows, versions 1.5 and 1.51

SYMPTOMS

When building an application written in Visual C++ version 1.5 or 1.51 under Windows NT, you may see the following error messages:

  RC : fatal error RW1016: RC terminating after preprocessor errors
  fatal error C1023: cannot open source file {resource file name}
  RC returned error code 1.

CAUSE

RC.EXE fails because there are not enough file handles allocated to the Virtual DOS Machine (VDM) in which the resource compiler is running.

RC.EXE is an MS-DOS-based application. When it's launched, its VDM automatically uses \WINNT\SYSTEM32\CONFIG.NT to set up its environment unless a different startup file is specified in an application's .PIF file. If the FILES specification in the CONFIG.NT file is set too low, RC.EXE is prevented from opening the files it needs.

RESOLUTION

To fix this behavior, specify more file handles in the CONFIG.NT file. CONFIG.NT is located in the \WINNT\SYSTEM32 directory (WINNT is the directory where Windows NT is installed).


Additional reference words: VWB workbench 1.50 1.51 8.00c visualc
KBCategory: kbtool kbprb kberrmsg
KBSubcategory: TlsMisc
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.