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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Executing Windows or DOS application from Windows 
  5. Distribution: world
  6. References: <Bzw446.AEr@pcuf.fi>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 28
  11. Date: Mon, 28 Dec 1992 21:07:43 +0000
  12. Message-ID: <725576863snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <Bzw446.AEr@pcuf.fi> turre@pcuf.fi writes:
  16.  
  17. >I am writing an application which should first unpack .ZIP's and later on
  18. >call an editor. Calling with WinExec is not difficult, but Windows keeps
  19. >executing my application while it should wait DOS or the editor to finish.
  20. >I can do a while loop with FindWindow, but problem is what to do inside
  21. >the loop. If I use GetMessage user can access my apps menus & buttons whichh
  22. >should not be allowed. DisableWindow will not help because user will not 
  23. >get back to the application if he, while in editor, switches task.
  24. >So I would like to wait for the tasks to finish with doing nothing in my
  25. >own app still allowing other applications to work. Help is appreciated in 
  26. >both DOS case and Windows case.
  27.  
  28. Why not simply set a "DOS Application is running" flag in your program at
  29. the time you start the program running, then ignore any WM_COMMAND messages
  30. you receive if the flag is set to "TRUE".  That's what I'd do, anyway.
  31.  
  32. Chris
  33. -- 
  34. --------------------------------------------------------------------------
  35. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  36. | Warrington, UK                           | BIX: cmarriott              |
  37. | (Still awaiting inspiration              | CIX: cmarriott              |
  38. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  39. --------------------------------------------------------------------------
  40.  
  41.