With regards
Peter Maigaard.
WinExec("wgnuplot file"); //This works fine
System("wgnuplot file"); //This works fine
WinExec("wgnuplot \"file\"); //This does NOT work
System("wgnuplot \"file\"); //This does NOT work
With the quatation marks in place, wgnuplot is executed but immediatly
closed again since no command from "file" is loaded.
Is this a bug in wgnuplot (beta 340) or is there another (Windows)
explanation ?
Regards
Peter Maigaard.
> Hi again,
> I worked it out myself, I think. Apparently it is necessary to remove the
> quotation marks around the "file" from the system call when calling wgnuplot
> from a Win32 application :
>
> WinExec("wgnuplot file"); //This works fine
> System("wgnuplot file"); //This works fine
>
> WinExec("wgnuplot \"file\"); //This does NOT work
> System("wgnuplot \"file\"); //This does NOT work
This shouldn't even compile, because the quotes are not balanced.
Sorry, in my hurry I left out some vital parts of the WinExec calls. This is
what I meant :
WinExec("wgnuplot file",SW_SHOWNORMAL); //This works fine
WinExec(" wgnuplot \"file\" ",SW_SHOWNORMAL); //This does NOT work
Peter Maigaard