[comp.os.os2] DosExecPgm question

atj@mirror.tmc.com (Alex Jenkins) (03/28/90)

Hi!  I am trying to do something very simple.  I want to fork, have the
child process exec another program.  I am trying to use DosExecPgm (OS/2 1.1).

I'm going by the book as far as I can tell, but it just doesn't behave.

Would some kind reader give me a hint?  The program I am exec'ing is a
PM application.  I've tried it from within my own PM application, and
from a simple full-screen program (hello, world ... DosExecPgm ... print
results).  In that latter case, the call returns 0, and the resultcode
structure contains 0 values, but never a sign of the exec'ed program.
(I am using EXEC_SYNC).  Thanks!

P.S. I've had miserable results with DosStartSession too, so maybe it's just
me :-) :-) :-)
--
Alex T. Jenkins 
Mirror Systems, Cambridge Massachusetts         atj@mirror.TMC.COM
 -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
"There's a prayer each night that I always pray:
 Let the data guide me through every day
 And every pulse and every code --
 Deliver me from the bypass mode"		- W.Z.