Visual C++ error
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?
this is the code i need to include in my game
how would i implement this?
//-----------------------------------------------------------------// 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?
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.
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.
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?
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.
And yes, it must be an .rc file.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement