Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 564
Rob Kam Avatar asked Nov 09 '08 22:11

Rob Kam


People also ask

How do I run a console application in Visual Studio using command line arguments?

In VS2010: Right click the project. Select Properties. Select Debug tab. Start Options -> Command line arguments: Enter the arguments here.

How do I run a console application in Visual Studio?

Build and run your code in Visual Studio To run the code, on the menu bar, choose Debug, Start without debugging. A console window opens and then runs your app. When you start a console app in Visual Studio, it runs your code, then prints "Press any key to continue . . ." to give you a chance to see the output.


1 Answers

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.

like image 150
Michael Burr Avatar answered Sep 20 '22 07:09

Michael Burr