home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4485 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!fuug!pcuf!news
  3. From: turre@pcuf.fi (Jarkko Turunen)
  4. Subject: Executing Windows or DOS application from Windows
  5. Message-ID: <Bzw446.AEr@pcuf.fi>
  6. Sender: news@pcuf.fi (News)
  7. Nntp-Posting-Host: pcuf.fi
  8. Organization: The PC-users of Finland
  9. Date: Sat, 26 Dec 1992 23:33:41 GMT
  10. Lines: 13
  11.  
  12. I am writing an application which should first unpack .ZIP's and later on
  13. call an editor. Calling with WinExec is not difficult, but Windows keeps
  14. executing my application while it should wait DOS or the editor to finish.
  15. I can do a while loop with FindWindow, but problem is what to do inside
  16. the loop. If I use GetMessage user can access my apps menus & buttons whichh
  17. should not be allowed. DisableWindow will not help because user will not 
  18. get back to the application if he, while in editor, switches task.
  19.  
  20. So I would like to wait for the tasks to finish with doing nothing in my
  21. own app still allowing other applications to work. Help is appreciated in 
  22. both DOS case and Windows case.
  23.  
  24. The application I am writing is a Windows 3.1 app and is written with MFC.
  25.