home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / win32 / 3006 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!microsoft!hexnut!alistair
  3. From: alistair@microsoft.com (Alistair Banks)
  4. Subject: Re: POSIX interface/Access to WIN32 calls
  5. Message-ID: <1993Jan21.170358.7247@microsoft.com>
  6. Date: 21 Jan 93 17:03:58 GMT
  7. Organization: Microsoft Corporation
  8. References: <1993Jan18.205847.13264@sobeco.com>
  9. Distribution: comp
  10. Lines: 13
  11.  
  12. In article <1993Jan18.205847.13264@sobeco.com> rcroteau@sobeco.com (r.croteau) writes:
  13. >Can I in some way make WIN32 calls from
  14. >a POSIX compiled application.
  15.  
  16. You cannot make Win32 calls directly from a posix process, but the
  17. result you're trying to achieve is quite easy. The most simple technique
  18. is to have you GUI code be in a Win32 process, which starts your POSIX
  19. code as a child process, with the posix processes stdin/stdout handles
  20. piped back into the win32 process - this gives you a fast and simple
  21. IPC between your win32 and posix code, and since the x11 APIs are
  22. client/serve in nature, its quite easy to keep the posix code identical,
  23. passing back the X-like calls to the win32 process which then
  24. "does the right thing" -- Alistair
  25.