How can I pass arguments to my exe? Like, from the command prompt, do this:
:confused:Quote:
C:\hoboexe.exe -f"C:\hoboexe2.exe"
Printable View
How can I pass arguments to my exe? Like, from the command prompt, do this:
:confused:Quote:
C:\hoboexe.exe -f"C:\hoboexe2.exe"
argc contains the number of arguments, argv[0] contains the application filename, and argv[1..argc-1] contain the arguments passed.Code:int main(int argc, char* argv[])
Z.
Oh. I always wondered what those meant. Just never had a reason to ask.
Thanks again, Z!