I am getting two of the same exact syntax errors at once
My program wants two colons in the same place. I tried this, and now it asks for another one.
Here is part of my code:
1 2 3 4
|
private: System::Void nwusr_Click(System::Object^ sender, System::EventArgs^ e) {
NewUser ^Form2 = gcnew NewUser;
NewUser->Show()
}
|
c:\documents and settings\leif\my documents\visual studio 2008\projects\cyber school\cyber school\Form1.h(162) : error C2143: syntax error : missing ';' before '->'
c:\documents and settings\leif\my documents\visual studio 2008\projects\cyber school\cyber school\Form1.h(162) : error C2143: syntax error : missing ';' before '->'
|
What is wrong? Is this a bug?
Are you sure it's not supposed to be Form2->/*...*/
? NewUser is a type, and you can't use -> on a type.
Also, are you aware that what you're doing there is not C++?
Topic archived. No new replies allowed.