Setting up Application Project Properties in Visual Studio .NET 2003
Visual Studio Project Debugging Properties
Next, We will look at the project Debugging Tab. Make sure that the Configuration is set to Debug. We will look at Release later.
The Debugging Tab is useful for passing in arguments to main() or WinMain() as if it were coming from the console command line.
Command This is the path and name of the executable to be invoked upon launching the debugger within the IDE. Leave this as $(TargetPath).
Command Arguments This is where any command line arguments you may wish to pass in to the executable when launched within the IDE should go. As you would expect, they are space delimited.
For example, if you wanted to pass two file names dude.txt and bork.txt, your Command Arguments field should read: dude.txt bork.txt. You do not have to add the executable name as the first argument.
Working Directory This is the "home" directory. Visual Studio sets it to the project (.vcproj) file's directory by default. You may want to change this to be the directory your output file is being built in; to do this you should use the $(OutDir) macro so that you only have to change the output directory in one place (the General Tab).