构建解决方案后仍然出现错误。请帮忙。 错误是:1> test.cpp(15):错误C2143:语法错误:缺少';'在' - >'之前
// 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 ";