Hello, I have Visual C++ 2008 in a Windows 7.
I wanna get the value from a textbox to an int, after that I wanna make some operations with the int like + or - or * or / and I want to write it to an another textbox. And to save the int to a file.
I tryed:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
int ^ a;
a = Convert::ToInt32(textBox1->Text);
here is the error:
a=a+^5;
textBox2->Text=Convert::ToString(a);
}
BUT I GET ERROR