Click to See Complete Forum and Search --> : opening windows applications in c++


vinaynitj
January 23rd, 2004, 11:00 PM
I am doing a task in which i have to open any executable file when the user types the name of that file in c++ & i am also using graphics
But i am not able to achieve it so please suggest me a way to do this as i have to submit it to my professor as early as possible in IISc.

Myself dot NET
January 23rd, 2004, 11:08 PM
I assume by opening an executable file you mean running it? For this you could use CreateProcess() or ShellExecute() win32 API functions.

Cyber Bandit
January 23rd, 2004, 11:30 PM
If u r using working in DOS than use "sytem" function.
Hope this solver ur problem.
Regards,
Bandit

Andreas Masur
January 24th, 2004, 04:38 AM
Take a look at the following FAQ (http://www.codeguru.com/forum/showthread.php?s=&threadid=231233)...

2806139
January 26th, 2004, 07:31 AM
I have been used the function CreateProcess ,this function can create a new thread .try it

Andreas Masur
January 26th, 2004, 08:22 AM
Originally posted by 2806139
I have been used the function CreateProcess ,this function can create a new thread .try it
Nope...'CreateProcess()' does create a new process, not a new thread...