none
how to add command arguments RRS feed

  • Question

  • Run as testconsole.exe -t in debug modle . -t is an argument. How to set the project's properties.

    Saturday, July 25, 2009 10:14 AM

Answers

  • Hi,

      To add the command line arguments in the console applications, goto the Project properties-> Configurations Properties->debugger->Command Arguments(vs 2005)
       Set the values in command arguments. Then Run the application


      Vote for me if this useful on left side green arrow. 


    Ayyavu
    • Edited by Ayyavu P Saturday, July 25, 2009 10:59 AM
    • Proposed as answer by Wesley Yao Monday, July 27, 2009 5:32 AM
    • Marked as answer by Wesley Yao Friday, July 31, 2009 3:38 AM
    Saturday, July 25, 2009 10:28 AM

All replies

  • Hi,

      To add the command line arguments in the console applications, goto the Project properties-> Configurations Properties->debugger->Command Arguments(vs 2005)
       Set the values in command arguments. Then Run the application


      Vote for me if this useful on left side green arrow. 


    Ayyavu
    • Edited by Ayyavu P Saturday, July 25, 2009 10:59 AM
    • Proposed as answer by Wesley Yao Monday, July 27, 2009 5:32 AM
    • Marked as answer by Wesley Yao Friday, July 31, 2009 3:38 AM
    Saturday, July 25, 2009 10:28 AM
  • How to fill in the blank? I tried fill "-t" without quotation marks there. But argc  unchanged.

    int argc, char* argv[])   
    {

    Saturday, July 25, 2009 11:06 AM
  • No quotation marks, your input is right, have you checked argv[1]?

    Sincerely,
    Wesley
    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, July 27, 2009 5:32 AM