- 706 名前:デフォルトの名無しさん [2008/05/07(水) 19:24:26 ]
- borland C++Builder6からgnuplotを実行し、
グラフを書かせたいのですが、 以下のコードではエラーが出てしまいます。 (pgnuplot.exeを認識しない。) ご指摘をお願いします。 ----------------------------------------------------- FILE* gp; gp = _popen("C:/Gnuplot/bin/pgnuplot.exe","wt"); if(gp == NULL){ ShowMessage("I can't find PATH"); exit(EXIT_FAILURE); } fprintf(gp, "plot sin(x)\n"); fprintf(gp, "pause -1"); fflush(gp); /* Don't forget to flush the buffer. */ getchar(); _pclose(gp); exit(EXIT_SUCCESS); ----------------------------------------------------
|

|