how to start another programme from exe created in C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 14
Reputation: Tom Pilk is an unknown quantity at this point 
Solved Threads: 0
Tom Pilk's Avatar
Tom Pilk Tom Pilk is offline Offline
Newbie Poster

how to start another programme from exe created in C++

 
0
  #1
Dec 19th, 2004
Hi, New to programming & a bit lost. How can I create an exe file inC++ that will startup another program such as Excel??
Thanks in anticipation
TP
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,728
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 737
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: how to start another programme from exe created in C++

 
0
  #2
Dec 19th, 2004
  1. #include <cstdlib>
  2.  
  3. std::system("<path to excel>");
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 14
Reputation: Tom Pilk is an unknown quantity at this point 
Solved Threads: 0
Tom Pilk's Avatar
Tom Pilk Tom Pilk is offline Offline
Newbie Poster

Re: how to start another programme from exe created in C++

 
0
  #3
Dec 19th, 2004
Thanks for that but it doesn't seem to work. I'm pretty clueless - do you have any ideas ho to get it to work?
TP
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

Re: how to start another programme from exe created in C++

 
0
  #4
Dec 20th, 2004
try

{do
{system("cls"); //clears the screen

has you can see when this program or line of code is ran, ....(this is part of my loop if your wondering) it clears the screen and starts again. Perhaps you could try putting the path of excel or something in there. I'm not to fimiliar about this line of code since I'm not ment to know about it yet.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC