cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Open another program, some wrong happned
Open another program, some wrong happned?
Sep 5, 2009 at 12:59pm UTC
HawkOfWinter
(34)
ShellExecute(NULL, L
"open"
, L
"FullPath\\name.exe"
, NULL, NULL, SW_SHOWNORMAL);
The upper run normally in XP.
But in some Vista system, the exe couldn't be open. And no any tip happened.
Why ShellExecute couldn't be supported by Vista?
Sep 5, 2009 at 3:39pm UTC
webJose
(2948)
It is supported in Vista.
http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx
Cast the return value to an int because it is the error code. You'll be able to find out the problem.
Topic archived. No new replies allowed.