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

WIN32 Resource doesn't work

This topic is 3416 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!