I have this piece of code:
void stoiximanFrame::OnButton1Click(wxCommandEvent& event)
{
cout<< TextCtrl1.GetValue() <<endl;
}
I just want to get the text from TextCtrl1 and I get this error:
stoiximanFrame::TextCtrl1’, which is of pointer type ‘wxTextCtrl*’ (maybe you meant to use ‘->’ ?)
I'm new to C++ so I've never used pointers before. I've read the basics of pointers but still I couldn't figure out how to solve the problem above.
In addition, I would appreciate any good documentation about how and when to use pointers.
Thanks.