I tried to go to the project properties selected by debugging in the configuration properties and set the arguments to the "> out.txt" command (without quotes, of course). However, when I run the program (with F5), I still see the output on the console and the out.txt file is not created. It is just a C ++ Hello World program. These steps worked for my friend, but not for me (he also used VS2008). I heard about disabling the hosting process, but it seems to be for Visual Studio 2005.
It seems that "> out.txt" is being passed as an argument. argc is 3, argv [1] is ">", and argv [2] is "out.txt". Shouldn't this happen? What can I do to fix this?
Steven
source share