• Lucid Dreaming - Dream Views




    Results 1 to 8 of 8

    Thread: C Help

    Threaded View

    1. #2
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      currently, you are just opening the external binary file for reading
      what you need is for the operating system to execute the program

      one way is the system() function

      If you use system() to execute an external program,
      you will lose all control over your program until the external program finishes
      (your program will just sit there, waiting)
      there are more elegant ways to execute external programs, and keep control
      but because you're dealing with OS specific things, it gets complicated, fast

      examples
      http://www.cprogramming.com/tips/sho...ount=30&page=1

      http://www.gidforums.com/t-3369.html

      just be careful with system()
      search and read up on it
      understand the problems, and why people advise against it's use
      Last edited by Ynot; 08-03-2008 at 10:04 AM.

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •