# 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 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 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 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 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.

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
627749
• Total Posts
2978913

• 10
• 10
• 21
• 14
• 14