I'm having trouble using MFC in Visual Studio 6. The problem I'm having is, say I have a text box that information is typed into. Once a button is clicked, this information is passed into code in a class ( that I created and added to the project ). This works fine. Now, there's a second button, and a second text box. When that second button is clicked, the info that was sent into my code should come out ( via another function in my class ) in that second text box. It's not happening. The text box is being filled with jumbled garbage.
One thing I did notice, is that if I perform BOTH functions inside 1 button click, it comes out fine. This makes me think that my class, my code, is going out of scope and losing it's values.
The problem is that I need my code to retain it's values. This is the first time I've ever used MFC, and I've tried everything I can think of, but nothing is working. I've never been this frustrated, and nothing I've found addresses this. It's probably something silly I'm missing, but I need help.
If what I'm saying isn't clear, please let me know, and I'll give more details. Any help is greatly appreciated.
One thing I did notice, is that if I perform BOTH functions inside 1 button click, it comes out fine. This makes me think that my class, my code, is going out of scope and losing it's values.
The problem is that I need my code to retain it's values. This is the first time I've ever used MFC, and I've tried everything I can think of, but nothing is working. I've never been this frustrated, and nothing I've found addresses this. It's probably something silly I'm missing, but I need help.
If what I'm saying isn't clear, please let me know, and I'll give more details. Any help is greatly appreciated.
Comment