How to control another program using C?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mshad84
    New Member
    • Mar 2008
    • 1

    How to control another program using C?

    Hi I could really use some help with this one! I am doing a final year project for a university degree and I need to write code in C/C++ to do the following

    1) Open the program "code composer studio"
    2) Open a project file (.pjt) within this program and run (debug) it.

    Any help would be appreciated greatly. Thanx
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    #2
    Originally posted by mshad84
    Hi I could really use some help with this one! I am doing a final year project for a university degree and I need to write code in C/C++ to do the following

    1) Open the program "code composer studio"
    2) Open a project file (.pjt) within this program and run (debug) it.

    Any help would be appreciated greatly. Thanx
    If you are programming for windows, use ShellExecute() and if you're using linux or unix, use exec()

    Comment

    • sicarie
      Recognized Expert Specialist
      • Nov 2006
      • 4677

      #3
      Originally posted by mshad84
      Hi I could really use some help with this one! I am doing a final year project for a university degree and I need to write code in C/C++ to do the following

      1) Open the program "code composer studio"
      2) Open a project file (.pjt) within this program and run (debug) it.

      Any help would be appreciated greatly. Thanx
      That sounds like a good project to use OS level API calls. I'm not familiar with "code composer studio" is that a Windows or Linux program?

      Comment

      • fual
        New Member
        • Feb 2008
        • 28

        #4
        Originally posted by mshad84
        Hi I could really use some help with this one! I am doing a final year project for a university degree and I need to write code in C/C++ to do the following

        1) Open the program "code composer studio"
        2) Open a project file (.pjt) within this program and run (debug) it.

        Any help would be appreciated greatly. Thanx
        I seem to remember VS2005 having some application called spy++ (or something with the name spy in) which gives you memory handles of controls in a program. That might help you get access to the functionality you need. However the one time I tried to use it it seemed like a total swine (not spy++ using the handles).

        Comment

        Working...