This is an odd behavior of SHELL and CreateProcess.
ShellExecute works as expected.
Mr Edwin Knoppert reported something similar in July 2000.
Background:
On a WIN2000 E-Server, I am trying to run a Consoleapp (PDPR.EXE) or run
a .cmd-file (witch in turn start PDPR.EXE) from inside a PowerBasic application.
'-------
SHELL returns an Errorcode <> 0 (Unfort. I did not record it)
(ERR-variable <> 0 that is)
'-------
CreateProcess return %NULL
(Process not created)
'-------
ShellExecute runs the EXE (retcode >32) and PDPR.EXE is able to report an errorcode
(runs the executable)
'-------
This is not a problem with the code, as all three variants are run without problem
on a equally configured E-server.
'-------
The reason for PDPR.EXE to fail is that it cannot establish a TCP-connection with
a "print-server" application running on the same E-server, in my opinion a legal
reason for failing.....
'-------
There has been a lot of posting about problem with SHELL an 16-bit programs.
PDPR.EXE is a 32 bit Windows console-app.
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
[This message has been edited by Fred Oxenby (edited July 24, 2001).]
ShellExecute works as expected.
Mr Edwin Knoppert reported something similar in July 2000.
Background:
On a WIN2000 E-Server, I am trying to run a Consoleapp (PDPR.EXE) or run
a .cmd-file (witch in turn start PDPR.EXE) from inside a PowerBasic application.
'-------
SHELL returns an Errorcode <> 0 (Unfort. I did not record it)
(ERR-variable <> 0 that is)
'-------
CreateProcess return %NULL
(Process not created)
'-------
ShellExecute runs the EXE (retcode >32) and PDPR.EXE is able to report an errorcode
(runs the executable)
'-------
This is not a problem with the code, as all three variants are run without problem
on a equally configured E-server.
'-------
The reason for PDPR.EXE to fail is that it cannot establish a TCP-connection with
a "print-server" application running on the same E-server, in my opinion a legal
reason for failing.....
'-------
There has been a lot of posting about problem with SHELL an 16-bit programs.
PDPR.EXE is a 32 bit Windows console-app.
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
[This message has been edited by Fred Oxenby (edited July 24, 2001).]
Comment