构建解决方案后我仍然收到错误。请帮忙。错误是:1>test.cpp(15): error C2143: syntax error: missing ';' 在'->'之前
//Form1.h
public ref class Form1 : public System::Windows::Forms::Form
{
public:
static Form1^ myForm1;
Form1(void)
{
InitializeComponent();
myForm1 = this;
//
//TODO: Add the constructor code here
//
}
}
在 cpp 文件中:
Form1^ myform1 = gcnew Form1();
Form1::myForm1->textBox1->Text = L" FROM the main.cpp ";