Original Post
I tried to compile a system of some nested classes and what happenned.. (small code dump:)
// in header file of the class
class gravityobjectsystem:public spaceobject
{
spaceobject* soa;
int nso;
public:
gravityobjectsystem();
virtual ~gravityobjectsystem();
///...........
// and then in .cpp file ...
gravityobjectsystem::gravityobjectsystem() //constructor
{
nso=0;
soa=NULL;
}
//....
I thought that this sholdn't be a problem, but MSVC6.0 came with two errors: error C2065: 'NULL' : undeclared identifier //??????!!!!!! error C2440: '=' : cannot convert from 'int' to 'class spaceobject *' does somebody had any similar problem? I though NULL is valid zero pointer really EVERYWHERE? ISN'T??!! WTF?!!! helpme... (i don't want to #define my own NULL) exa_einstein