View Single Post
Old 12-13-2004, 01:15 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Quote:
Originally Posted by harker
I keep getting a compile error saying that a constant 'ICON_GROUP', define in 'resources.h', is not defined. This is a win32 application by the way.

Here is my resources.h file

Code:
#define ICON_GROUP 1002
#define ICON_LEAF 1003
#define ICON_DL 1004
#define ICON_RIP 1005
#define MY_TREE 1000
#define MAIN_WINDOW 1001
Could it be, that you're including your resources.h file so many times that the compiler gets confused ??
Try controling your needed includes like:
resources.h
Code:
#ifndef RESOURCES__H__
#define RESOURCES__H__

#define ICON_GROUP 1002
#define ICON_LEAF 1003
#define ICON_DL 1004
#define ICON_RIP 1005
#define MY_TREE 1000
#define MAIN_WINDOW 1001

#endif
That might give a clue, since I never heard of a compiler giving that error, when the file already has been included.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote