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 2018-09-21 10:53:25 by anonymous)