473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

As in subject. Thanks in advance.

Apr 19 '06 #1
6 13528

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.

Apr 19 '06 #2
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 - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
Apr 19 '06 #3
you're right, sorry.

Apr 19 '06 #4
CoL
Yep.
GO in project>setting
Here you will get box for program arguments fill with your required
values.

Regards,
COL

kmietas wrote:
As in subject. Thanks in advance.


Apr 19 '06 #5
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 <http://groups.google.com>. 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
<http://c-faq.com/>. 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 <http://www.faqs.org/faqs/>. This
largely replaces the old <http://rtfm.mit.edu/> and
<ftp://ftp.rtfm.mit.edu/>, which has gone away.

Apr 19 '06 #6
kmietas wrote:
you're right, sorry.


About what?

Brian

--
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
header.
Apr 19 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Subhransu Sekhar Sahoo | last post by:
Hi, I have a very basic qus. An executable can be written using n number of languages, viz C,,C++,Perl,Java,...And all these languages use different calling convensions for example C uses cdecl...
12
by: BartlebyScrivener | last post by:
I'm still new at this. I can't get this to work as a script. If I just manually insert the values for sys.argv and sys.argv it works fine, but I can't pass the variables from the command line. What...
2
by: kmietas | last post by:
How can I pass command line arguments in Visual Studio 2005 (in C++ environment)? Thanks in advance.
2
by: Milan | last post by:
Hi, Please guide me how to set command line argument and how to retrive command line argument. Senario: vb.net application should be able to execute from command prompt by passing login and...
2
by: vidhyap | last post by:
hi,i want to know how to pass command line arguments in vb.
2
by: Russ P. | last post by:
Is it possible to pass command-line arguments when running a program in IDLE? The "Run" menu does not seem to provide that option. Thanks.
12
by: Raghunandan24 | last post by:
Hi, I wanted to know how to run dos commands using javascript. Also i need to run a batch file with two command line arguments. These commandline arguments are variables. Thanks Raghu
3
by: Annonymous Coward | last post by:
How can I pass command line arguments to a C# program? "C# + command line arguments" is not retrieveing anything useful on Google. Also, is there a predetermined entry point e.g. 'int main(int...
2
by: =?Utf-8?B?S2VsdmluIEpvaG5zb24=?= | last post by:
I am wrapping a legacy C api using C++\CLI. I will use the resulting classes from C# and VB.net. I need to pass command line arguments from the .net languages to the c api functions, so I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.