How do you run your program with parameters?
Printable View
How do you run your program with parameters?
can you elaborate a bit?
do you mean with command line arguments? ie:
if this is it then I don't think there is a way to do that; at least I've never knew how.Code:~$> prog_name -flag1 -flag2
Somewhere in the project or debug properties, there's a dialog which allows you to set the command line params to be set when you debug a program.
IN VC++ 6.0, you go to Project->Settings and switch to the Debug tab, then type in your arguments (without the executable name) into the Program Arguments box.
For .NET I'm not sure how you'd do it, a quick search of MSDN mentioned a <Project> Property Pages dialog box.
In VC .NET 2003 if you go to the Workspace Property Pages by right clicking the project and clicking properties at the bottom. Then click in the root of the "Configuration Properties" There should be two choice "General" and "Debugging" click on debugging and you should see "Command Arguments" Just put the arguments there and you should be set.
Thanks everyone =)