Doomulation
?????????????????????????
Now comes a problem again... this problem is pretty avoidable if headers does not include other headers, but anyway, here's the deal...
I have the class CRegistry defined in registry.h. Registry.h must include Global.h since the template functions (in registry.h) need functions defined there.
However, in turn, Global.h needs access to the CRegistry class, so it must include registry.h. There's the problem. They're trying to constantly include each other, hence the compiler is unable to find the information it needs.
Is there a way to define classes external or something? Or must it be that the registry is stored within global.h or perhaps the registry code must be commented out in global.h? Advice, please!
I have the class CRegistry defined in registry.h. Registry.h must include Global.h since the template functions (in registry.h) need functions defined there.
However, in turn, Global.h needs access to the CRegistry class, so it must include registry.h. There's the problem. They're trying to constantly include each other, hence the compiler is unable to find the information it needs.
Is there a way to define classes external or something? Or must it be that the registry is stored within global.h or perhaps the registry code must be commented out in global.h? Advice, please!