Ok I'm trying to make a GUI with multiple forms on Visual C++ 2005 Express Edition. And I was following a tutorial and made two forms. Form1 and Second. I want the Second form to open from Form1. So I included Second.h in form1 and then added this to the code:
private: System::Void Form1_DoubleClick(System::Object^ sender, System::EventArgs^ e) {
Second *dos= new Second;
dos->Show();
}
I get the following three errors:
error C3699: "*" cannot use this indirection on 'Multiforms1::Second'
error C2750: 'Multiforms1::Second': cannot use "new" on the reference type; use gcnew instead
error C2440: 'initializing: cannot convert form Multiforms1::Second* to 'Multiforms::Second^'
I tried messing around with it, but I can't get it to work.