VC++ 6.0, Edit Boxes, and doubles
I'm writing an application that needs to grab a set of doubles from a corresponding set of Edit Boxes. Using the Class Wizard I've created double variables for each Edit Box control. Everytime I hit the Calculate button, however, all the edit boxes reset to zero and the box that is supposed to contain the result of the calculations says NAN.
What am I doing wrong? I know my calculation function works, as it runs fine on a command line.
|