Article View: comp.os.os2.programmer
Article #64Re: Execute a non PM program from a PM program
From: Larry Salomon Jr.
Date: Fri, 30 Oct 1992 13:24
Date: Fri, 30 Oct 1992 13:24
26 lines
1341 bytes
1341 bytes
In <1992Oct29.024549.28633@ucsu.Colorado.EDU> gamage@spot.Colorado.EDU (GAMAGE NIMAL K K) writes: > I am trying to execute a non PM program from a PM program. > Can somebody send me a simple code showing how to do it. > I did not have any problem executing a PM program from > a PM program. > Gamage > gamage@spot.colorado.edu You can *not* use DosExecPgm (nor spawn*(), since they call DosExecPgm) to execute a program that is not the same type (PM or non-PM) as the program making the call. This is due to the session manager and all kinds of goodies that you don't care about :) (you just want it to work, right? :). Instead, use DosStartSession(). Cheers, Q -- "If you choose not to decide, you | "A fool and his money are fun to go still have made a choice" - Rush | out with" - seen on a T-shirt ------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Oct30.132412.2427@panix.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!rutgers!cmcl2!panix!os2manReferences:
<1992Oct29.024549.28633@ucsu.Colorado.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!rutgers!cmcl2!panix!os2man From: os2man@panix.com (Larry Salomon Jr.) Newsgroups: comp.os.os2.programmer Subject: Re: Execute a non PM program from a PM program Message-ID: <1992Oct30.132412.2427@panix.com> Date: 30 Oct 92 13:24:12 GMT References: <1992Oct29.024549.28633@ucsu.Colorado.EDU> Organization: PANIX Public Access Unix, NYC Lines: 26