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