home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: Porting X applications to NT/Win32
- Distribution: world
- References: <1992Dec17.161921.17376@medusa.prime.com>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 36
- Date: Thu, 17 Dec 1992 18:56:37 +0000
- Message-ID: <724618597snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1992Dec17.161921.17376@medusa.prime.com> johnm@CIS.Prime.COM writes:
-
- >
- >I am currently looking into the feasibility of porting an X application to
- >Windows NT/Win32. My X application consists of two cooperating processes; a
- >UI engine and a graphics engine. Amongst other things, the UI engine is
- > responsible
- >for creating graphics windows within a strictly defined presentation area, and
- > then
- >passing the handles to these graphics windows to the graphics engine. The
- > graphics
- >engine is then able to draw graphics and process X events in these windows,
- > just as
- >if it had created the windows itself. My question is this. Will Windows
- > NT/Win32
- >support this type of architecture (ie sharing windows between different
- > processes) ?
- >
- >Thanks
- >John Mason
- >
-
- Two *processes* can't share a window, no, but two *threads* within the same
- process can. Why not write your application as a multi-threaded app - you'll
- find it's pretty much the same as having two separate apps, with the benefit
- that you can share all the resources between the two.
-
- Chris
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | (Still awaiting inspiration | CIX: cmarriott |
- | for a witty .sig .... ) | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-