Thread: Arguments

  1. #1
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469

    Arguments

    C:\winprog.exe -USER Me

    How would I get the arguments if I ran the gram like that? and the program was a windows program
    Last edited by Driveway; 07-01-2002 at 09:19 AM.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    3rd param of WinMain or use GetCommandLine();

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    GetCommandLine().

    ***EDIT***

    Concurrency again!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Ok, thabks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  3. command line arguments
    By vurentjie in forum C Programming
    Replies: 3
    Last Post: 06-22-2008, 06:46 AM
  4. Replies: 10
    Last Post: 09-27-2005, 12:49 PM
  5. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM