Open another program, some wrong happned?

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?
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.