Thread: Execute another program

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    3

    Question Execute another program

    I'm making a game, and I have a button that links to my site. I want the site to open in Internet Explorer. My question here is what is the function to execute another program, and what are its arguments?
    Last edited by Revan-th; 08-04-2006 at 08:37 PM.

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    ShellExecute(). Look it up MSDN.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    3
    Ah, I tried that... But when I went to compile it, it came up with the wrong number of arguments.

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    3
    Wow. I feel stupid. I did skim over the FAQ and didn't see that. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a program that will call an execute but with arguments
    By what3v3r in forum C++ Programming
    Replies: 3
    Last Post: 01-19-2006, 09:44 PM
  2. Need help on code to execute the program
    By hibmem10 in forum C++ Programming
    Replies: 6
    Last Post: 12-24-2005, 01:42 PM
  3. Can't execute my program
    By bahruddina in forum C Programming
    Replies: 4
    Last Post: 07-13-2004, 10:19 PM
  4. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM