Hello, I have been reading a book and its accompanying CD about how to program video games in Windows for beginners. In one of the appendices on the CD's side of the literature, there was a skeleton example of a Windows program that used super basic resources: specifically just a large icon and a small icon resource.
The trouble was, the author only programmed/included those resources using a header file and a resource file (Resource.h and Skeleton.rc, respectively). In the .rc file, he typed in two lines of stuff and nothing else - no pictures or anything. However when I was trying to copy his program using VC8, the problem that I ran into was I could not figure out how to do that with a .rc file.
When I would go in to try to make a new .rc file, first it would make a folder for such things, and then when I would get VC8 to actually make such a file, I could not figure out how to make the file such so that I could simply type stuff in. I saw all these type options, like Bitmap and stuff, but nothing like what the author is using.
__________________________________________________ __________
How do I do that using VC8? The book comes with a free compiler, which the author said copying that example would be easier on, but VC8 is what I'm interested in learning this stuff on.
__________________________________________________ __________
To help clarify what he was using, I shall show you the contents of the two resource-oriented files:
Resource.h ==
Code:
//————————————————————————————————-
// Icons Range : 1000 - 1999
//————————————————————————————————-
#define IDI_SKELETON 1000
#define IDI_SKELETON_SM 1001
Skeleton.rc ==
Code:
//————————————————————————————————-
// Include Files
//————————————————————————————————-
#include “Resource.h”
//————————————————————————————————-
// Icons
//————————————————————————————————-
IDI_SKELETON ICON “Res\\Skeleton.ico”
IDI_SKELETON_SM ICON “Res\\Skeleton_sm.ico”
----both files provided by the book and CD of Beginning Game Programming by SAMS
Again my question is how to make a Skeleton.rc file to match his, using VC8. The problem was I couldn't figure out how to generate such a file that I could type into.
Thanks!!!