Why when I convert my solution from Debug to Release version, the program doesn't work anymore?
Posted on 2015-02-10
I finally was able to get the C++ program to compile without any errors and was able to produce the output without any issues. When I compiled it into executable and tried to run on an XP machine, I received a message indicating that it was not a WIN32 application. I then created a new project and selected "Visual Studio 2013 - Windows XP (v120_xp)" as the new platform. I also specified that this executable be compiled as a Release version.
Now when I try to run the program, I get errors for fscanf, strcat, strcopy, where I didn't before. I changed the fscanf, strcat, and strcopy to the secure functions (i.e., functions ending with _s). My program still does not work.
I'm not a c++ programmer nor am I experienced in Visual Studio 2013.
Can someone tell me what I am doing wrong? Why changing the program from debug to release would result in errors? And how can I get the program to run in an XP platform?