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