When ever I write a class on one file, and try to use it on an other file, I get errors like 'error C2065: 'MyClass' : undeclared identifier'.
I learnt that only if the class declaration appears in the same file, and before the line it is used, only then my project will compile.
I'm pretty sure theres something simple that I'm doing wrong... How do I solve this?