I read in the PB/DLL online Help that, if you use the WINMAIN()
function in your program, you can return an exit error code by
assigning the value to the FUNCTION. But, how can I get a *DOS*
program to receive the error code? The reason I need it is because
I wrote a Windows docment file printing program (using
ShellExecute with the "print" command), and it is mainly for use
with my DOS programs so they have a way to print if I decide to use
my printer in USB Mode. I tested the error code stuff with a DOS
program using the QPP 3.0 LoadExec% function, but the return variable
for the LoadExec% function ALWAYS returns "0", even if the print
program errors out.
Any ideas?
Thanks in advance!
------------------
Clay C. Clear
[email protected]
http://www.v3space.com/a/a39/202/ (currently inactive)
function in your program, you can return an exit error code by
assigning the value to the FUNCTION. But, how can I get a *DOS*
program to receive the error code? The reason I need it is because
I wrote a Windows docment file printing program (using
ShellExecute with the "print" command), and it is mainly for use
with my DOS programs so they have a way to print if I decide to use
my printer in USB Mode. I tested the error code stuff with a DOS
program using the QPP 3.0 LoadExec% function, but the return variable
for the LoadExec% function ALWAYS returns "0", even if the print
program errors out.
Any ideas?
Thanks in advance!

------------------
Clay C. Clear
[email protected]
http://www.v3space.com/a/a39/202/ (currently inactive)
Comment