I haven't used vectors much so I'm not sure if this problem is with how I'm implementing it or something else. This is supposed to loop through the checkboxes and check them until it reaches the limit set by acctNum. After the first checkbox get set, it goes to the start of the for loop, but instead of incrementing i it exits the function.
I don't think this is a wxWidgets issue as much as something I'm doing wrong with the vector since that seems to be where the problem lies. After VS exits the function I get "No Source Available" tab pop up that I've only ever seen when working with assembly and couldn't get a reason for that from my teacher. I have a feeling it's a memory issue of some kind, but not sure were to look. Any ideas would be a great help.
Hi tipaye, thanks for the reply. They both should be the same. m_entriesR1Txt is a text box and the value of acctNum is set to the value returned from ->GetValue().ToLong(). ToLong() requires a variable which I hadn't originally planned to use. The times before I did something similar was in Java and I didn't need a variable for the cast so the way I had it first would have worked. I don't know why I didn't think to switch out the variable in the for conditions to begin with but live and learn I guess.