#define ITEMNUM 10When 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]