944,134 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5279
  • C++ RSS
Dec 19th, 2004
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tom Pilk is offline Offline
14 posts
since Dec 2004
Dec 19th, 2004
0

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

C++ Syntax (Toggle Plain Text)
  1. #include <cstdlib>
  2.  
  3. std::system("<path to excel>");
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Dec 19th, 2004
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tom Pilk is offline Offline
14 posts
since Dec 2004
Dec 20th, 2004
0

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

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.
Reputation Points: 12
Solved Threads: 5
Posting Pro
Acidburn is offline Offline
510 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: I need help with a linked list program
Next Thread in C++ Forum Timeline: Deleting files from a Visual C++ project





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC