Hello, I'm trying to port a program that was written in Visual C++ 6.0 to Visual Studio 2005. After not having much success I tried to port it to VS2003 and was able to get the program to work. I then took that port and tried to get it to work in VS2005 and was able to get most of it to function but one part.

I have a edit box and a slider box, either one can be used, to enter a floating value between 0 and 1. When you try to select either a message pops up saying "Please enter a value between 0 and 1000" and you are not able to change any values before this message pops up, and then a debug assertion error is given.

I have checked over all the math and it remains the same as the VC++6.0 and VS2003 that both work, and the only part of the code that was changed was when some pow() functions where used to solve and problem with ambiguity (I cast the values as being double since I am under the impression that VC++6.0 pow() fucntion could only take doubles)

Any ideas of where to start would be great.