Windows, c++ - Gnuplot as child process, cannot get data from stdout -
i want use gnuplot c++ program in windows. launch gnuplot (v5.0) child process c++, described here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx.
writing process stdin
writefile
works , can send commands gnuplot , plots ok; however, need read gnuplot's output back. when trying read stdout
of process:
readfile
blocks.peeknamedpipe
returns 0 bytes available read.
when launch executable, example "cmd.exe", instead of "gnuplot.exe", peeknamedpipe
returns number of bytes available, , readfile
reads data expected. me, means code ok , somehow, "gnuplot.exe" doesn't write stdout
.
does know if possible read gnuplot's output this?
edit
the main goal able set terminal png , read image data without passing temporary file.
Comments
Post a Comment