Hi all, I wrote my program using DEV C++ and took the advice of many people to make the switch to visual c++. I've remade all my cpp and header files and it all compiles fine, but when i go to run the executable i get the following error:

http://img703.imageshack.us/img703/8...eenshot1sy.png

and heres the code to which it refers:

http://img200.imageshack.us/img200/6...enshot2azv.png

thank you for your help