BUG: Fatal Error RC1015: Cannot Open Include file Afxres.h

Last reviewed: January 22, 1998
Article ID: Q156916
The information in this article applies to:
  • Microsoft Visual J++ 1.0, 1.1

SYMPTOMS

Trying to open a .rc file, when a Java project is open, fails with following error message:

   Fatal Error RC1015: Cannot open include file Afxres.h

CAUSE

The Java project doesn't contain an include path, so it cannot find the Afxres.h file as it normally does when no Java project or Visual C++ project is open.

WORKAROUND

Convert the .rc file to .rct or .res and open it when a Java project is open.

You can generate the .res file by compiling the .rc file. The .rct file can be generated by opening the .rc file and saving it using the Save As option.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

The following steps reproduce the problem. Also this scenario happens when users have both Visual C++ and Visual J++ installed:

  1. In an installation with both Visual C++ and Visual J++, open a Java project.
2. Click File.Open and click an .rc file

The error message appears.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/
   http://support.microsoft.com/support/java/

Keywords          : VJGenIss
Technology        : kbInetDev
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


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: January 22, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.