First I'm very new to C++ and am going through a tutorial about windows programming.
The problem (well not really a problem as I've got around it) is in regards to some definitions not appearing to exist. I'm using Codeblocks 8:02 (which may make a difference)
The first problem I had was with IDC_STATIC, it turned out that this wasn't being defined, even though I found it in windows.h
I've progressed but have the same issue with IDC_PRESS and IDC_OTHER, other than that a search for these (in all includes), finds nothing.
My get-around is to add the following code, in my resource.rc file:-
1 2 3 4 5 6 7 8 9
|
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
#ifndef IDC_PRESS
#define IDC_PRESS (9005)
#endif
#ifndef IDC_OTHER
#define IDC_OTHER (9006)
#endif
|
My primary question is, am I going about this in the right way? A secondary question I suppose is perhaps that I've got a cut-down version of windows.h and should I be looking for a fuller version?
I'm getting the values by searching via google, but I have visions of this ending up being a momentous task which I would guess that others may have encountered.
I have included windows.h, in case this is asked. I have included it twice in main.cpp and in resource.rc, I wouldn't have thought that this would be an issue though, but am I wrong to think this way?