Jump to content
  • Advertisement
Sign in to follow this  
LiziPizi

Win32 - resource.h "no such file or directory"

This topic is 1597 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 everyone, 

 

I'm learning winapi and im building a window with file menu, and I came across with this error says that there is no resource file in my project, I know there's need to be .rc kind of file but where do I get it, in winprog tutorials they didnt mention how to activate it or w.e?

I also included it at the begining of my code (as #include "resource").

 

Thank you.

Share this post


Link to post
Share on other sites
Advertisement

The nature and content of resource files is beyond what can be discussed in a forum, other than to say that it's a file which describes resources (menus, icons, etc.) which can be used by your Win32 app. As explained in winprog, you need a resource file. Read that information in a bit more detail as it explains what the basic file looks like, what resource.h is, etc. You'll learn a lot more if you read through the tutorial, rather than just grabbing code and trying to compile it.

 

What IDE are you using? If the one you're using doesn't create a resource file for you, I strongly suggest you get Visual Studio. You can get VS2013 Express for Desktop for free. The express version doesn't include a resource editor, but it will generate the resource file and headers. The resource file is ASCII and can be edited easily in VS as a text file. There are also some free resource editors available. ResEdit is one. Google for "windows resource editor."

 

If you're using Visual Studio, start by letting VS build you a Win32 Application solution. Then you can look at the all the parts needed to display a window.

Edited by Buckeye

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!