justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.

Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: I was wondering if there is a swell function for createpipe when using createprocess so the stdout, stderr, could be redirected to an edit control to read the output in real time, or could it even be added? Here's a sample snippet link that I got working on windows. Was wondering how I could do this on Mac, if possible? pastiebin.com/5d598085afe2dThanks, Wyatt
Asked by Wyatt (76.77.164.x) on August 18 2019, 5:06pm
Reply on August 19 2019, 5:50pm (edited at August 19 2019, 5:52pm):
    For macOS there is SWELL_CreateProcessIO()/SWELL_ReadWriteProcessIO() which you can use (or steal). (I know you didn't ask, but for linux -- pipe()/fork()/close()/dup2()/execvp()/fcntl/etc... a small pain but not too bad, let me know if you want some sample code).


    Your Name:   -- Site Owner's Name:  (for human-verification)


[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2019 Justin Frankel. | RSS