|
-
December 12th, 2008, 02:20 AM
#1
Execute exe file
Hi
I wanna ask.. Can i execute another exe file from C Builder using code... For example the user will press a button and the Microsoft Word will open after a while
-
December 12th, 2008, 02:41 AM
#2
Re: Execute exe file
- Sreehari
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
" Everybody is sent to Earth on a purpose. I am so Lagging behind that i won't die." – Calvin
-
December 13th, 2008, 01:16 AM
#3
Re: Execute exe file
But all these are too complicated there is no code for 2 or 3 rows????
-
December 13th, 2008, 01:19 AM
#4
Re: Execute exe file
 Originally Posted by Leite33
But all these are too complicated there is no code for 2 or 3 rows????
Each one of the methods posted is a SINGLE line of code (a function call) with appropriate initialization done as distinct statements for readability, and with error checking for the results.
How much simpler could it be????
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
December 13th, 2008, 01:45 AM
#5
Re: Execute exe file
I mean that is much code of the examples that you send me before... For example
WinExec().. Can i use that??? What the syntax will be??? Can i bring an error message if doesnt work???(the file or application doesnt exist);
Thanks
-
December 13th, 2008, 01:48 AM
#6
Re: Execute exe file
 Originally Posted by Leite33
I mean that is much code of the examples that you send me before... For example
WinExec().. Can i use that??? What the syntax will be??? Can i bring an error message if doesnt work???(the file or application doesnt exist);
Thanks
That is all covered in the link that sreehari posted nearly 24 hours ago, and in the documentation for the API / System calls that are used.....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|