I used _spawnlp and it worked to bring up nodepad, windows explorer but failed to bring up power point and the Java plotting package. Any ideas on why it worked on certain executable files and not others? I am using windows XP and visual studio 6.0 to compile source codes. Thanks.
_spawnlp(_P_WAIT, "explorer", "C:\\C\\explorer.exe", NULL);
The above worked fine
but
_spawnlp (_P_WAIT, "Jplot", "C:\\C\\Jplot.exe", NULL); has error. It returns nonzero.