I have my GUI form all set up, and when I click on a button I want to have a custom function (addNums) called, but I keep getting an error that says
" 'addNums' identifier not found "
Here is my code for the event handler:
private: System::Void button1_Click(System:: Object^ sender, System::EventArgs^ e) {
double Number1, Number2, Result;
Number1 = Convert::ToDouble(textBox1->Text);
Number2 = Convert::ToDouble(textBox2->Text);
if(radioButton1->Checked == true) {
textBox3->Text = addNums(Number1, Number2);
}
}
I have my addNums function set up in my main source file, what am I doing wrong?
This is just something I am playing around with trying to get the feel for Visual C++ and I realize I can just add the two numbers within the event call.
" 'addNums' identifier not found "
Here is my code for the event handler:
private: System::Void button1_Click(System:: Object^ sender, System::EventArgs^ e) {
double Number1, Number2, Result;
Number1 = Convert::ToDouble(textBox1->Text);
Number2 = Convert::ToDouble(textBox2->Text);
if(radioButton1->Checked == true) {
textBox3->Text = addNums(Number1, Number2);
}
}
I have my addNums function set up in my main source file, what am I doing wrong?
This is just something I am playing around with trying to get the feel for Visual C++ and I realize I can just add the two numbers within the event call.