Original Post
I got two classes: engine.h
#pragma once
class engine
{
public:
content * tcontent;
engine(void);
virtual ~engine(void);
};
content.h
#pragma once
class content
{
engine * p_tengine;
public:
content(void);
virtual ~content(void);
};
And i can't get this to work, because of the way i include the header files. The engine is the main class and content is a member in it. the pointer to an engine class in the content class is a pointer to its parent. If i include content.h before engine.h it will create errors in content.h ( not recognizing engine class) and if i include engine.h before content.h it will create errors in engine.h ( not recognizing content class ) could really use the help. And yes the pointer to the parent are required!