I have a string command I\'d like to execute asynchronously while writing to its input and reading its output. Sounds easy, right, the devil is in the cross-platform. I\'m t
for converting windows HANDLEs to C file descriptors use _open_osfhandle http://msdn.microsoft.com/en-us/library/bdts1c9x%28VS.71%29.aspx
HANDLE
_open_osfhandle
EDIT: this example once helped me aswell with a similar problem: http://www.halcyon.com/~ast/dload/guicon.htm