Running a Program

This is a discussion on Running a Program within the Windows Programming forums, part of the Platform Specific Boards category; How would I make a program to run "C:\Program Files\AIM95\aim.exe" and then have the program act like I just pressed ...

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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 05: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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 06:24 AM
  2. Running my program in the background
    By shoobsie in forum Windows Programming
    Replies: 4
    Last Post: 10-09-2005, 03:38 AM
  3. Replies: 3
    Last Post: 09-05-2005, 09:57 AM
  4. Why is my program running away?
    By badkitty in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2001, 05:27 PM
  5. Running program
    By muffin in forum C Programming
    Replies: 5
    Last Post: 08-30-2001, 11:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21