home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2531 < prev    next >
Encoding:
Text File  |  1992-12-18  |  2.0 KB  |  51 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Porting X applications to NT/Win32 
  5. Distribution: world
  6. References: <1992Dec17.161921.17376@medusa.prime.com>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 36
  11. Date: Thu, 17 Dec 1992 18:56:37 +0000
  12. Message-ID: <724618597snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1992Dec17.161921.17376@medusa.prime.com> johnm@CIS.Prime.COM writes:
  16.  
  17. >
  18. >I am currently looking into the feasibility of porting an X application to
  19. >Windows NT/Win32. My X application consists of two cooperating processes; a
  20. >UI engine and a graphics engine. Amongst other things, the UI engine is
  21. > responsible
  22. >for creating graphics windows within a strictly defined presentation area, and
  23. > then
  24. >passing the handles to these graphics windows to the graphics engine. The
  25. > graphics
  26. >engine is then able to draw graphics and process X events in these windows,
  27. > just as
  28. >if it had created the windows itself. My question is this. Will Windows
  29. > NT/Win32
  30. >support this type of architecture (ie sharing windows between different
  31. > processes) ?
  32. >
  33. >Thanks
  34. >John Mason
  35. >
  36.  
  37. Two *processes* can't share a window, no, but two *threads* within the same
  38. process can.  Why not write your application as a multi-threaded app - you'll
  39. find it's pretty much the same as having two separate apps, with the benefit
  40. that you can share all the resources between the two.
  41.  
  42. Chris
  43. -- 
  44. --------------------------------------------------------------------------
  45. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  46. | Warrington, UK                           | BIX: cmarriott              |
  47. | (Still awaiting inspiration              | CIX: cmarriott              |
  48. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  49. --------------------------------------------------------------------------
  50.  
  51.