Hopefully this is an easy one, I'm just confused...
I have a file called global.h, that holds a few global variables and defines, etc. Every file in my project #include's global.h.
One define is called ITEMNUM, and looks like this:
#define ITEMNUM 10
When I use ITEMNUM in a regular *.cpp file, it has no problems with it. For example, I use it in this loop:
for (int loop=0; loop < ITEMNUM; loop++)
But when I use it my Class file, the compiler says that it is an undeclared identifier.
#pragma once
#include ".\global.h"
class MyClass
{
public:
MyClass(void);
int Items[ITEMNUM];
}
Any ideas why this is occurring? What am I doing wrong?
[edited by - toddhd on June 10, 2004 1:17:20 PM]
[edited by - toddhd on June 10, 2004 1:39:47 PM]
-Todd"Windows dectected that your mouse has moved. Please reboot for the changes to take effect"