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


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?

Best Solution

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.