Newbie Help with g_spawn



Hi
    I'm making a GUI for a CLI program and I've gotten stuck with the
process of launching the command-line program. Looking through the docs it
appears that I'm to use one of the g_spawn marcos. I'm getting nowhere. The
marcos run, but nothing happens even the error returns are empty. If it
matters I'm using WinXP with wGlade and winGTK.

Here's an example
gboolean command_return;
gchar *mpa2mka_command_line;
mpa2mka_command_line = "D:\\pfe.exe"; or
mpa2mka_command_line = "'D:\\pfe.exe'"; or
mpa2mka_command_line = "D:\\\\pfe.exe"; or
mpa2mka_command_line = "'D:\\\\pfe.exe'";
command_return = g_spawn_command_line_sync(mpa2mka_command_line, NULL, NULL,
NULL, NULL);

Any help would be very much appreciated
Thanks,
Jory






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]