I am trying to make a program on Microsoft Visual C++ which takes in your name and as output should say "Hello (Name)". I know a little about C++ and i got 2 errors.
1) error C2227: left of '->textBox1' must point to class/struct/union/generic type is 'const char [7]'
2)error C2228: left of '.Text' must have class/struct/union
The code of the Button which when pressed will change the text on label2 is-