Hi there,
I'm just a C++ beginner myself, but the errors showing would suggest to me that you are having type conversion issues.
Starting at line 100:
1 2 3 4 5
|
int hours;
int grosspay;
hours = textBox1 -> Text;
grosspay = hours * 20;
textBox2 -> Text = grosspay;
|
In this code (line 102, first error) you are trying to assign a textbox value (string) to a variable which you have declared as a number (integer). In order to be able to do this you will need to cast the type of the textbox to an int. Possibly this might work:
|
hours = (int) textBox1 -> Text;
|
For line 104, it's the reverse, grosspay is an integer and you're trying to write it to a textbox.
As you can find here:
http://msdn.microsoft.com/en-us/library/a19tt6sk.aspx#Y0
The texbox text setter will only accept a string, so you will need to convert your int to a string.
This topic describes that matter:
http://www.cplusplus.com/forum/beginner/7777/
I'm not sure about Visual C++ though, it may have its own converter class. For instance in C# one could do string.toInt32(); to do type conversions.
Sorry I can't be of more help, but hopefully it should get you in the right direction to solve the problem.
All the best