954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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

Tom Pilk
Newbie Poster
14 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 
#include <cstdlib>

std::system("<path to excel>");
Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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

Tom Pilk
Newbie Poster
14 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

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.

Acidburn
Posting Pro
511 posts since Dec 2004
Reputation Points: 12
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You