Original Post
Im makeing jump to c++ (from c# and java) and so i started a program in C++ and im haveing some issues with include's any how i have 2 classes mainForm includes Register.h (a panel to be swapable with other panels on runtime) and Register includes mainForm.h but this causes errors at the line of this code snipit in class1 this->window =((System::Windows::Forms::Panel^) gcnew Register()); and gives this error error C2061: syntax error : identifier 'Register' what about includes am i not understanding? why cant 2 classes include each other? and how can i get around this problem btw i need Register panel to include mainForm for typecasting so i can relay information gatherd in the registerpanel back to the mainForm