DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   How do I start an exe file from C++ (http://www.daniweb.com/forums/thread15808.html)

Tom Pilk Dec 19th, 2004 8:28 am
How do I start an exe file from C++
 
Hi - new to all this. Trying to learn C++. How can I create an exe file in C++ that will open another file eg an excel file, when my created exe file is run??
Thanks for any help
TP

steveh Dec 20th, 2004 1:36 pm
Re: How do I start an exe file from C++
 
Use CreateProcess function for 32 bit applications

Acidburn Dec 20th, 2004 1:43 pm
Re: How do I start an exe file from C++
 
hasnt this topic already been posted?

alc6379 Dec 20th, 2004 1:59 pm
Re: How do I start an exe file from C++
 
Quote:

Originally Posted by Acidburn
hasnt this topic already been posted?

Yes, numerous times. Good catch ;) Shows how useful the search function is, right?

boldspin Dec 21st, 2004 2:11 am
Re: How do I start an exe file from C++
 
On windows you can use the CreateProcess function. On unix you can you can use the exec family of fucntions along with the fork system call to achieve the same thing.


All times are GMT -4. The time now is 5:46 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC