Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!mcsun!hp4nl!star.cs.vu.nl!mabdoor@cs.vu.nl From: mabdoor@cs.vu.nl (Doorn van MAB) Newsgroups: comp.os.os2.programmer Subject: starting a (PM) program Message-ID: <10034@star.cs.vu.nl> Date: 23 May 91 10:24:25 GMT Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, Vrije Universiteit, Amsterdam Lines: 55 Problems... I want to startup a (PM) application (e.g. SystemEditor, FileSystem, browser) INSIDE my own program. If my own program terminates, the started application should stay. In fact, my program should execute the 'START' command. I tried this sample program (originally from the online-ProgrammersReference): ---------------------------------- #define INCL_DOSPROCESS #include #define START_PROGRAM "c:\bin\pmview.exe" CHAR LoadError[100]; PSZ Args; PSZ Envs; RESULTCODES ReturnCodes; USHORT rc; int i; main() { if(!DosExecPgm(LoadError, sizeof(LoadError), 4, Args, Envs, &ReturnCodes, START_PROGRAM)) printf("Termination Code %d Return Code %d \n", ReturnCodes.codeTerminate, ReturnCodes.codeResult); } ------------------------------ It failed .... :-( My question: HOW CAN I STARTUP AN PM-APPLICATION INSIDE MY OWN PROGRAM ?? Any suggestions are welcome, but please respond by e-mail. Otherwise your answer might get expired, because I only read this group once a week... :-) You can contact me by e-mail: mabdoor@cs.vu.nl Thanks ! Matthijs van Doorn ________________________________________ "If debugging is the process of removing bugs, then programming must be the process of putting them in."