How can I pass command line arguments in Visual Studio 2005 (in C++ environment)

Discussion in 'C Programming' started by kmietas, Apr 19, 2006.

  1. kmietas

    kmietas Guest

    As in subject. Thanks in advance.
    kmietas, Apr 19, 2006
    1. Advertisements

  2. kmietas wrote:
    > As in subject. Thanks in advance.

    I don't know. Why don't you try looking through the menus? Anyway, this
    is a question for one of the M$ groups. Look them up.
    Vladimir S. Oka, Apr 19, 2006
    1. Advertisements

  3. Flash Gordon

    Flash Gordon Guest

    Re: How can I pass command line arguments in Visual Studio 2005 (inC++ environment)

    kmietas wrote:
    > As in subject. Thanks in advance.

    Always put your question in the body of the message. Some people don't
    have both the body and the subject line visible at the same time.

    C++ is off topic here, so if you are using C++ rather than C you shose
    the wrong group. C++ is most definitely *not* C.

    As to your question, your application can read parameters using
    argv/argc in the normal way. If you want to know how to use VS to set up
    the parameters passed to your program, ask in a Visual Studio group. We
    only deal with C here, not the vast number of compilers that exist.
    Flash Gordon, living in interesting times.
    Web site -
    comp.lang.c posting guidelines and intro:
    Flash Gordon, Apr 19, 2006
  4. kmietas

    kmietas Guest

    you're right, sorry.
    kmietas, Apr 19, 2006
  5. CoL

    CoL Guest

    GO in project>setting
    Here you will get box for program arguments fill with your required


    kmietas wrote:
    > As in subject. Thanks in advance.
    CoL, Apr 19, 2006
  6. Re: How can I pass command line arguments in Visual Studio 2005 (inC++ environment)

    kmietas wrote:
    > As in subject. Thanks in advance.

    I have several suggestions.
    1) Do not hide salient parts of your question in your headers. Subject
    headers, as you will soon learn, are almost useless and usually ignored
    except for deciding whether to look at a post at all.

    2) comp.lang.* newsgroups are about computer languages. Visuaul Studio
    2005 is not a computer language, but a proprietary product. It has its
    own newsgroups, mailing lists, and technical support. Use them.
    Questions about this product do not belong in <news:comp.lang.c>.

    3) C++ is not an environment, but a programming language.
    4) C++ is not C. They are different languages. Questions about C++
    belong in <news:comp.lang.c++>, not <news:comp.lang.c>

    5) Before posting to any newsgroup, check to see if your post will be
    considered topical in that newsgroup. In the olden days, it was
    expected that you would follow a newsgroup for several weeks before
    posting to it. The equivalent of this can be done quickly by using the
    archives at <>. You can also check to see if
    your question has been already answered.

    6) Your question may have already been asked and answered. Most
    beginners' questions *have* already been asked and answered, often
    frequently. That is the reason that most technical (and many other)
    newsgroups have Frequently Asked Question lists (FAQs). *Always* check
    a newgroup's FAQ before posting a question. Our FAQ can be found at
    <>. If you follow a newsgroup (or check the archives),
    you will see many pointers to the newsgroup's FAQ and usually postings
    once or twice a month of at least an abridged version of it. If you
    cannot find a newsgroup's FAQ, check <>. This
    largely replaces the old <> and
    <>, which has gone away.
    Martin Ambuhl, Apr 19, 2006
  7. Default User

    Default User Guest

    kmietas wrote:

    > you're right, sorry.

    About what?


    Please quote enough of the previous message for context. To do so from
    Google, click "show options" and use the Reply shown in the expanded
    Default User, Apr 19, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BartlebyScrivener

    can't pass command-line arguments

    BartlebyScrivener, Apr 10, 2006, in forum: Python
    Duncan Booth
    Apr 11, 2006
  2. rockdale
    Juan T. Llibre
    Aug 23, 2006
  3. kmietas
    Apr 19, 2006
  4. XJ
  5. Afshin
    Jul 13, 2013

Share This Page