Newsgroups: comp.windows.ms.programmer
Path: utzoo!utgpu!watserv1!watmath!mks.com!dale
From: dale@mks.com (Dale Gass)
Subject: Lauching Windows Apps from Non-Windows Apps?
Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
Date: Fri, 3 May 91 14:51:30 GMT
Message-ID: <1991May3.145130.5755@mks.com>

I am looking for information on how to launch Windows 3.0 Applications from
non-windows application running in a Window.

I can not find any obvious method of doing this.  It seems that WinExec()
is the key to lauching Windows apps from other apps, but this call is only
available from within Windows applications.  It seems that Windows is the
only entity "smart" enough to be able to successfully load Windows .EXE's.

Having a Windows application as a "wrapper" for my non-windows application
would be acceptable.  Is there any way for a non-windows application who
is a child of Windows application to communicate with it's parent, to request
launching of another Windows app?

It seems to me that with older versions of Windows, one could start Windows
programs from within the DOS box.  Am I mistaken?  (If this was the case,
they must have taken over the DOS exec call...)

(Starting another copy of windows from inside a Window is not an acceptable
solution.)

Microsoft Technical support was unable to provide any answers.

Any advice would be appreciated.

Thanks,

-dale@mks.com    uunet!watmath!mks!dale
