Sign in to follow this  
emforce

Visual C++ error

Recommended Posts

hi guys i been going through beginning game programming and i am stuck. the book wants me to include a resource file Blizzard.rc but it doesn't let me what am i doing wrong?

Share this post


Link to post
Share on other sites
this is the code i need to include in my game


//-----------------------------------------------------------------
// Blizzard Resources
// RC Source - Blizzard.rc
//-----------------------------------------------------------------

//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include "Resource.h"

//-----------------------------------------------------------------
// Icons
//-----------------------------------------------------------------
IDI_BLIZZARD ICON "Res\\Blizzard.ico"
IDI_BLIZZARD_SM ICON "Res\\Blizzard_sm.ico"




how would i implement this?

Share this post


Link to post
Share on other sites
What version of VC++ are you using and what is the error message?

Normally, you should just be able to put this in a text file called Blizzard.rc and add it to your solution just as with any file.

Share this post


Link to post
Share on other sites
VC++ 2008 and to you have to include resources as an .rc or can u implement it into another file? like a header file or a .cpp file? and if so how would i do that?

Share this post


Link to post
Share on other sites
Create a text file called Blizzard.rc, paste that code into it and then, in Visual Studio's Solution Explorer (where it lists your files, right-click on the source files folder, choose "Add", "Existing item..." and point it towards that Blizzard.rc file. That's all you need to do.

And yes, it must be an .rc file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this