Thread: arguments from another executable

  1. #1

    arguments from another executable

    I have 2 programs. One is a test case generator(A) and the other is the program (B) the test cases refer to. Now, I was told to use some sort of system command to call B and input arguments as generated from A. Then, A is supposed to generate a .dat file of time-to-errors to be used with CASRE. The problem is that I cannot find any such system call and how to use it. Does anyone have a suggestion on where to look? Thanks

  2. #2
    Platform you're developing for?

  3. #3
    Writing for Windows

  4. #4
    There is a family of spawn functions that allow you to start another process and to pass arguments to it. Here's a link to a reasonably good explaination...

    Read the above page and let us know how you make out. Your compiler library may have slightly different names and/or parameters... sometime these can be a little tricky to get just right, but nothing major.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2009, 12:57 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. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 01:07 AM
  5. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM