4 Replies - 2662 Views - Last Post: 20 April 2011 - 10:30 AM Rate Topic: -----

#1 welcomelalit   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-April 11

call another exe file from c program in turbo c++

Posted 20 April 2011 - 12:51 AM

hi everyone...

i am doing a project in c using turbo c++ compiler.I am developing some dos games around 2 to 3 games.
Now i want to make an common interface so that i can call or execute all the games from a single c program on
user" choice. So plz help me in this.[i want to execute my games exe file from another c program.I am working in turbo c++ compiler and using an simulater DOS BOX]

plz hlp..
Is This A Good Question/Topic? 0
  • +

Replies To: call another exe file from c program in turbo c++

#2 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,325
  • Joined: 14-February 08

Re: call another exe file from c program in turbo c++

Posted 20 April 2011 - 04:04 AM

Look at the ShellExecute function :)
Was This Post Helpful? 1
  • +
  • -

#3 welcomelalit   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-April 11

Re: call another exe file from c program in turbo c++

Posted 20 April 2011 - 08:03 AM

View Poststayscrisp, on 20 April 2011 - 04:04 AM, said:

Look at the ShellExecute function :)



i am working in c in turbo c/c++ compiler. Will shellexecute function work.
which header file i have to include.
thnx dude in advance
Was This Post Helpful? 0
  • +
  • -

#4 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,325
  • Joined: 14-February 08

Re: call another exe file from c program in turbo c++

Posted 20 April 2011 - 08:18 AM

ShellExecute is a windows function so should work in Turbo C++. You know what helps to answer these types of questions? Trying it out for yourself :)
Was This Post Helpful? 1
  • +
  • -

#5 welcomelalit   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-April 11

Re: call another exe file from c program in turbo c++

Posted 20 April 2011 - 10:30 AM

View Poststayscrisp, on 20 April 2011 - 08:18 AM, said:

ShellExecute is a windows function so should work in Turbo C++. You know what helps to answer these types of questions? Trying it out for yourself :)



thanx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1