PRB: RW1004 Error Due to Unexpected End of File (EOF)

ID: Q106064


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), versions 3.1, 3.5, 3.51, 4.0


SYMPTOMS

The resource compiler generates the following errors when the .RC file includes a .H file whose last line is a define (that is, there was no final carriage return at the end of the #define statement):

fatal error RC1004: unexpected EOF


CAUSE

The resource compiler preprocessor follows C syntax. A newline character is required on a #define statement.


RESOLUTION

Add a carriage return following the #define.

Additional query words: 3.10 3.50 4.00 95

Keywords :
Version : WINDOWS:3.1,3.5,3.51,4.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 10, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.