[Contents] [Resources] [Forum] [Coursework] [Exercises]
There are two ways to give command-line arguments to your Visual C++ program:
Click on the Start button, and choose Programs⇒Command Prompt. You will need to cd to the directory containing your executable program, then enter the program name followed by the arguments (space separated), and press Return.
Choose Project⇒Settings..., select Debug, and enter the arguments in the Program arguments: field, then click on OK.
These arguments will be given when executing the program from within Visual C++.
The second method is probably more convenient, but the first is probably more flexible.
[Contents] [Resources] [Forum] [Coursework] [Exercises]
Updated: 2006-Mar-04 21:02 GMT
Maintained by
Steven Simpson