Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!ztivax!tumuc!lan!rommel From: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Newsgroups: comp.windows.ms Subject: Re: Spawning another App Message-ID: <809@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 22 Sep 89 11:57:58 GMT Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Organization: Inst. fuer Informatik, TU Muenchen, W. Germany Lines: 11 Why such a rumour about spawning other applications ? Simply use spawnlp() or a similar call from the C library (the windows version of course) with a P_WAIT or P_NOWAIT parameter. If you want to start a program but to stay in foreground, simply use SetFocus(hWnd) immediately after the spawnlp() call. I use this method in a replacement program for the MSDOS executive and until now I did not have any problems. Kai Uwe Rommel