Calling an application using VC
-
There are many APIs for calling an application, the simplest one is WinExec(..), and other is CreateProcess which is more detialed. Regards, Mushq
Which API is better for calling another application
-
Which API is better for calling another application
CreateProcess(...) is more better, since you can apply wait on the process created by this API, and also can get the error after execution of your application, but it is slight slower than winexec(..).
-
Which API is better for calling another application
From the MSDN CreateProcess: This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file. ---------------------- ShellExecute : Performs an operation on a specified file.
WhiteSky
-
From the MSDN CreateProcess: This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file. ---------------------- ShellExecute : Performs an operation on a specified file.
WhiteSky
Thank you for your replies. Very useful, I forgot how to call an application using VC and now I get it. Thank you. TRINH.NGUYEN
-
Thank you for your replies. Very useful, I forgot how to call an application using VC and now I get it. Thank you. TRINH.NGUYEN
I glad you find it:)
WhiteSky
-
There are many APIs for calling an application, the simplest one is WinExec(..), and other is CreateProcess which is more detialed. Regards, Mushq
-
CreateProcess(...) is more better, since you can apply wait on the process created by this API, and also can get the error after execution of your application, but it is slight slower than winexec(..).
-
Win32-based applications should use the CreateProcess function. You should at least say something such as that and that it is important to read the documentation.
Sam Hobbs wrote:
You should at least say something such as that and that it is important to read the documentation.
but there are 100s of answers look like mine,then why are you telling me only.
-
Sam Hobbs wrote:
You should at least say something such as that and that it is important to read the documentation.
but there are 100s of answers look like mine,then why are you telling me only.
-
Hi everyone, I have a simple question: How to call an application using VC? Thank you in advance.
You can use also of
Winexec
orShellExecute
WhiteSky