Differences between revisions 47 and 48
Revision 47 as of 2024-03-21 12:02:56
Size: 975
Editor: anonymous
Comment:
Revision 48 as of 2024-03-24 18:53:21
Size: 975
Editor: anonymous
Comment:
No differences found!

Providing Command Line Arguments in Visual Studio

In the Solution Explorer, right-click on the application name and follow the tree:

Solution Explorer
|
+- Application Name
   |
   + Properties 
     |
         + Configuration Properties
           |
           + Debugging

In the Debugging form on the right hand side of the dialog, there is an entry for Command Arguments. It is here that you provide the options or filenames:

--input A.lis --output B.out

(or whatever your application requires).

Place any required supporting files (in the example above, it looks like A.lis) in the same folder as your .vcproj file for the project.

Running your application now in either "Release" or "Debug" mode should invoke it with the correct arguments. These are accessible via your main routine's int argc and char* argv[] parameters.

VisualStudioArgs (last edited 2024-03-24 18:53:21 by anonymous)