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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -