x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

How I Can Use Arguments In eVC++

nathanpc Page Icon Posted 2009-09-08 7:58 PM
#
Avatar image of nathanpc
H/PC Philosopher

Posts:
327
Location:
Portugal
Status:
Hello,
I'm needing to use arguments(int argc, char *argv[]) in the application that i'm developing, but how i can use it in eVC++?
I'm going mad with this!

Thanks,
Nathan Paulino Campos
 Top of the page
smb_gaiden Page Icon Posted 2009-09-08 11:22 PM
#
Avatar image of smb_gaiden
Factorite (Elite)

Posts:
212
Status:
Project -> Settings -> Debug Tab -> Program Arguments

Type them in like this

first_arg second 3

that will fill the argv array and the arg c to the appropriate places. If you need an element with spaces to be treated as one argument, you'd better put some quotation marks around it.

What're you making, if you can share?
 Top of the page
nathanpc Page Icon Posted 2009-09-09 5:49 AM
#
Avatar image of nathanpc
H/PC Philosopher

Posts:
327
Location:
Portugal
Status:
Thanks very much smb_gaiden and about my project, when i finish it, i will share it and with the code!

Thanks!
 Top of the page
nathanpc Page Icon Posted 2009-09-11 7:34 PM
#
Avatar image of nathanpc
H/PC Philosopher

Posts:
327
Location:
Portugal
Status:
I try to do this, but what i type in the Program Arguments field and how i can use it?

Thanks!
 Top of the page
mscdex Page Icon Posted 2009-09-11 8:37 PM
#
Avatar image of mscdex
H/PC Sensei

Posts:
1,054
Location:
United States
Status:
As far as I know. you just type in a string that you would normally type on the command-line after the executable name. Example: "/D:IDECD0001 /E" (without the quotes)
 Top of the page
nathanpc Page Icon Posted 2009-09-12 8:15 AM
#
Avatar image of nathanpc
H/PC Philosopher

Posts:
327
Location:
Portugal
Status:
Thanks very much mscdex!
All is working now!

Thanks very much!
 Top of the page
Jump to forum:
Seconds to generate: 0.140 - Cached queries : 62 - Executed queries : 10