Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!trantor!dsampson From: dsampson@x102a.harris-atd.com (sampson david 58163) Newsgroups: comp.windows.ms.programmer Subject: Re: Spawning other Windows programs Message-ID: Date: 7 Mar 91 18:34:31 GMT References: <1991Mar6.172043.28286@uicbert.eecs.uic.edu> Sender: news@trantor.harris-atd.com Distribution: comp Organization: Harris Gov't Aerospace Systems Division Lines: 29 In-reply-to: pacheco@uicbert.eecs.uic.edu's message of 6 Mar 91 17:20:43 GMT >I need to know how to spawn other Windows programs, i.e. they have no >relation with the program being executed. An example of this would be >the Program Manager, as well as the old MS-DOS Executive, and the >shareware replacement to the Program Manager, Aporia. There are 2 ways to launch another program from your windows application: 1) WinExec 2) LoadModule Each of these offers a slightly different approach in how you start up the application (i.e. paramaters passed to the functions). Personally, I use the WinExec when I don't have to worry about command line parameters. -- A new world record in the javalin throw / / / I ------------------------------------------------- David Sampson Harris Corporation dsampson@x102a.ess.harris.com Gov't Aerospace Systems Divison uunet!x102a!dsampson Melbourne, Florida -------------------------------------------------------------------------------