|
-
April 3rd, 2008, 07:21 PM
#1
Start a process?
How do I start a process?
Cheers
-
April 3rd, 2008, 07:26 PM
#2
Re: Start a process?
See CreateProcess function in Msdn.
-
April 3rd, 2008, 07:34 PM
#3
-
April 28th, 2008, 03:46 AM
#4
Re: Start a process?
You can also use the CreateProcessEx function..
-
June 2nd, 2008, 09:42 AM
#5
Re: Start a process?
MS preferes developers to use
ShellExecute / ShellExecuteEx
The advantage is, that you can make use of AppPaths registration and similar services of the Shell.
regards
HoM
-
June 2nd, 2008, 09:58 AM
#6
Re: Start a process?
Where do you find it documented that MS prefer this?
-
June 3rd, 2008, 01:51 AM
#7
Re: Start a process?
I remember this from several documents MS released about their "LOGO" programms. The last document like this I read when "Win2k Logo" was en vogue.
:-) I admit this is long time back. But ... some things do not change.
This ( http://www.microsoft.com/msj/0899/logo/logo.aspx ) is the only reference I found having a quick view into the internet.
I think you can do almost anything with ShellExecute(Ex), one can do with CreateProcess, with the benefit of some extra services (ShellExecute does FindExecutable(), resolves AppPaths registrations, sets extra search of the AppPaths registration, works with documents instead of .exe ...).
Maybe one thing it can not: I think the "alternate search path" for dlls is not supported ...
regards
HoM
-
June 3rd, 2008, 05:25 AM
#8
Re: Start a process?
 Originally Posted by Icyculyr
How do I start a process?
Cheers
This FAQ page might be helpful for you.
http://www.codeguru.com/forum/showthread.php?t=302501
Bharani
Rate the posts which you find useful
-
June 3rd, 2008, 12:00 PM
#9
Re: Start a process?
 Originally Posted by HoM
I remember this from several documents MS released about their "LOGO" programms. The last document like this I read when "Win2k Logo" was en vogue.
:-) I admit this is long time back. But ... some things do not change.
This ( http://www.microsoft.com/msj/0899/logo/logo.aspx ) is the only reference I found having a quick view into the internet.
I think you can do almost anything with ShellExecute(Ex), one can do with CreateProcess, with the benefit of some extra services (ShellExecute does FindExecutable(), resolves AppPaths registrations, sets extra search of the AppPaths registration, works with documents instead of .exe ...).
Maybe one thing it can not: I think the "alternate search path" for dlls is not supported ...
regards
HoM
I started using CreateProcess so long ago, ShellExecuteEx didn't exist at the time. I've been using cp ever since, but it looks like ShellExecuteEx is a good alternative. Thanks.
-
June 3rd, 2008, 09:41 PM
#10
Re: Start a process?
One very useful thing that ShellExecute does, in the Vista era, is prompt the user for elevation if necessary.
Kelly
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
|