Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C++

Complier Error: RC1004

5.00/5 (4 votes)
15 May 2011CPOL 18.8K  
Complier Error: RC1004
Full Error Name:
Resource Compiler Fatal Error RC1004
unexpected end of file found

To Fix:
Be sure to hit enter at the end of the last line in both the resource.h and the resource.rc files.

Example:

//resource.h
#define IDC_APPMENUS  100
#define IDM_EXIT      101
//a newline must be here

//resource.rc
#include resource.h

IDC_APPMENUS MENU
BEGIN
   POPUP "&File"
   BEGIN
      MENUITEM "E&xit", IDM_EXIT
   END
END
//a newline must also be here

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)