home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2460 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!dcl-cs!alan
  2. From: alan@comp.lancs.ac.uk (Alan Phillips)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Syncing with DOS apps from Win16
  5. Message-ID: <1992Dec15.165350.24623@comp.lancs.ac.uk>
  6. Date: 15 Dec 92 16:53:50 GMT
  7. Organization: Department of Computing at Lancaster University, UK.
  8. Lines: 24
  9.  
  10. Busy porting my PFE editor to NT, and trying to use the Win16 version to
  11. do the edits, I've come across an interesting problem:
  12.  
  13. PFE can run DOS commands and wait for them to complete. Under Windows 3
  14. it does this by WinExec'ing the exe file, and then walking the task list
  15. until the task it starts is no longer there. This seems to work fine.
  16.  
  17. When running in the Win16 subsystem, though, PFE does the WinExec, and
  18. instantly decides that the child task has finished. I suspect that this
  19. is because the DOS task runs in the DOS subsystem, so doesn't appear in
  20. the Win16 task list ever.
  21.  
  22. So, what if any is a good protocol to use to do this job _under Win16?_.
  23. And a necessary corollary, what's the definitive way for a 16 bit app to
  24. detect that it's running in the Win16 subsystem under NT rather than a
  25. good old Windows 3.1 environment?
  26.  
  27. And a side question: I use the common dialogs to do font selection, and
  28. it's fine under Windows 3. But under Win16, I don't see any TT fonts.
  29. Anyone like to suggest what the reason might be? [Yes, I do have
  30. language set to English(American), and W4W under Win16 _can_ see TT
  31. fonts]
  32.  
  33. Alan
  34.