How do I start an exe file from 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 do I start an exe file from C++

 
0
  #1
Dec 19th, 2004
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 15
Reputation: steveh is an unknown quantity at this point 
Solved Threads: 0
steveh steveh is offline Offline
Newbie Poster

Re: How do I start an exe file from C++

 
0
  #2
Dec 20th, 2004
Use CreateProcess function for 32 bit applications
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 do I start an exe file from C++

 
0
  #3
Dec 20th, 2004
hasnt this topic already been posted?
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: How do I start an exe file from C++

 
0
  #4
Dec 20th, 2004
Originally Posted by Acidburn
hasnt this topic already been posted?
Yes, numerous times. Good catch Shows how useful the search function is, right?
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1
Reputation: boldspin is an unknown quantity at this point 
Solved Threads: 0
boldspin boldspin is offline Offline
Newbie Poster

Re: How do I start an exe file from C++

 
0
  #5
Dec 21st, 2004
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.
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC