🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Doorn van MAB Thu, 23 May 1991 10:24
starting a (PM) program
#3145
Author: Doorn van MAB
Date: Thu, 23 May 1991 10:24
55 lines
1887 bytes
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 <os2.h>

#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."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads