Thread: Running a Program

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    8

    Running a Program

    How would I make a program to run "C:\Program Files\AIM95\aim.exe" and then have the program act like I just pressed F-12 in AIM?

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Learning a programming language would be a great start.

    edit: On a less sarcastic note, the system() function cane be used to execute system calls. For example system(aim.exe) would execute AIM. system() is usualy discouraged because it is not portable, but it sounds like that doesn't matter in this case, if you already know that AIM is on the machine. And I'm not sure what behavior is typical of pressing F-12 on AIM.
    Last edited by sean; 07-24-2004 at 04:56 PM.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    8
    I know some c++. However, I have no knowledge of anything outside of console apps. I'm pretty sure this would qualify as outside of console apps.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    First of all - it appears I added the edit to my post after yours was made so perhaps you didn't see it - that'll answer your first question.

    In any case, to get into Windows Programming, you'll want to finish learning C++ (as you'll have to be very familiar with OOP), and then download and learn a Windows API, like MFC or OWL or something.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program running long
    By smarta_982002 in forum Windows Programming
    Replies: 3
    Last Post: 03-27-2008, 05:24 AM
  2. Running my program in the background
    By shoobsie in forum Windows Programming
    Replies: 4
    Last Post: 10-09-2005, 02:38 AM
  3. Replies: 3
    Last Post: 09-05-2005, 08:57 AM
  4. Why is my program running away?
    By badkitty in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2001, 04:27 PM
  5. Running program
    By muffin in forum C Programming
    Replies: 5
    Last Post: 08-30-2001, 10:57 AM