🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1878

Executing Windows or DOS application from Windows

#1878
From: Jarkko Turunen
Date: Sat, 26 Dec 1992 23:33
13 lines
1151 bytes
I am writing an application which should first unpack .ZIP's and later on
call an editor. Calling with WinExec is not difficult, but Windows keeps
executing my application while it should wait DOS or the editor to finish.
I can do a while loop with FindWindow, but problem is what to do inside
the loop. If I use GetMessage user can access my apps menus & buttons whichh
should not be allowed. DisableWindow will not help because user will not 
get back to the application if he, while in editor, switches task.
 
So I would like to wait for the tasks to finish with doing nothing in my
own app still allowing other applications to work. Help is appreciated in 
both DOS case and Windows case.
 
The application I am writing is a Windows 3.1 app and is written with MFC.
Technical Details
Message-ID: <Bzw446.AEr@pcuf.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!pcuf!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!fuug!pcuf!news
From: turre@pcuf.fi (Jarkko Turunen)
Subject: Executing Windows or DOS application from Windows
Message-ID: <Bzw446.AEr@pcuf.fi>
Sender: news@pcuf.fi (News)
Nntp-Posting-Host: pcuf.fi
Organization: The PC-users of Finland
Date: Sat, 26 Dec 1992 23:33:41 GMT
Lines: 13