How to run a console application with command line parameters in Visual C++ 6.0?

Rob Kam picture Rob Kam · Nov 9, 2008 · Viewed 41.5k times · Source

I've got a console application that compiles and executes fine with Visual C++ 6.0, except that it will then only get as far as telling me about missing command line parameters. There doesn't seem to be anywhere obvious to enter these. How do I run or debug it with command line parameters?

Answer

Michael Burr picture Michael Burr · Nov 9, 2008

I assume you're talking about setting the command line parameters for running in the IDE.

Open the Project/Settings property page and go to the Debug tab.

There's a "Program arguments" field you can put them into.