Jump to content
  • Advertisement
Sign in to follow this  
Paul-K

WIN32 Resource doesn't work

This topic is 3502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all, I have those 3 files: Fun.rc Present.h Present.ico All included in my project, Fun.rc contains this: #include "Present.h" IDI_PRESENT ICON "Present.ico" Present.h: #define IDI_PRESENT 101 and in my main i added on top: #include "Present.h" Then when i try to compile it i get this error: Present.h(1) : fatal error RC1004: unexpected end of file found So yes i know it has something to do with the end of the file present.h, but what should i do? Thx

Share this post


Link to post
Share on other sites
Advertisement
Oh sorry all, i already found it:


After you modified your reource.h, you may got this error:

fatal error RC1004: unexpected end of file found.

It's a bug of the resource compiler.

The solution is adding a blank line or two to the end of the file and build again.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!