Hello,
I'm currently toying around with the newly released VC++2005 Express edition to refresh my dated C++ knowledge. So I created me a simple form with a button that I wanted to use to open another form. Both forms are in the same project, Intellisense is showing me the second form's class, and I'm following the examples in the documentation for calling the second form - still, when I try to build the project I get the error message that the second form's class couldn't be found in the project...
private: System::Void btnOpenForm_Click(System::Object^ sender, System::EventArgs^ e) {
FormTest::Form2 ^newForm = gcnew FormTest::Form2();
newForm->ShowDialog();
}
I made a simple (two forms, one button)
example solution to show the problem. It might be my lack of knowledge in VC++ that leads to this problem, but I presented this first in a regular C++ forum and nobody was able to tell my why the code didn't work... So is this a bug in VC++ 2005 (some internal references not getting set) or is it just me? If the latter then some hint would be very much appreciated!
:(