Hello everyone,
I am trying to figure out how to call GNUPLOT commands from a WINDOWS app. I am not coding in C++, I'm using WINDOWS APIs.
This is pretty straightforward problem if one is calling from a console app. Several developers (N. Devilla, for one) have done this. Their approach is to use _popen() (windows) or popen()(UNIX, LINUX). This approach doesnt work in a WINDOWS GUI app, however, only in a console app. It is also possible to use system()to do exactly the same thing.
Somehow there must be a way to invoke GNUPLOT using CreateProcess() after creating a pipe. But, I can't figure out how to do it. MSDN library has an example of redirecting using CreatePipe, but I can't understand how to apply it in this circumstance. Can someone suggest a solution?
Thanks,
Mark Allyn
I am trying to figure out how to call GNUPLOT commands from a WINDOWS app. I am not coding in C++, I'm using WINDOWS APIs.
This is pretty straightforward problem if one is calling from a console app. Several developers (N. Devilla, for one) have done this. Their approach is to use _popen() (windows) or popen()(UNIX, LINUX). This approach doesnt work in a WINDOWS GUI app, however, only in a console app. It is also possible to use system()to do exactly the same thing.
Somehow there must be a way to invoke GNUPLOT using CreateProcess() after creating a pipe. But, I can't figure out how to do it. MSDN library has an example of redirecting using CreatePipe, but I can't understand how to apply it in this circumstance. Can someone suggest a solution?
Thanks,
Mark Allyn
Comment