[Glade-users] Problem with glade/cygwin32 ?



On Sun, 2005-10-16 at 20:28 +0200, Philippe Lefevre wrote:
Hello all,

Newbie in glade and cygwin32, I get a problem that I do not understand 
and for which I didn't find any explanation on the net.

I've build a very simple test program (vf) with a button that raise a 
signal to activate an other external program (tst).

The called program tst.c is :
        void main()
        {
          printf("Hello all\n");
        }

I updated the corresponding entry in the vf callbacks.c build by glade 
with :

        on_boutonSauvegarde_clicked (GtkButton *button, gpointer user_data)
        {
          int CR;
          CR = system("/home/phl/Projects/vf/src/tst");
          printf("CR = %d\n", CR);
        }

Launching vf and clicking on the button I get the following error :
        bash-3.00$ ./vf
        Le chemin sp?cifi? est introuvable.  (unable to find the 
specified path)
        CR = 1

Do you have to include the drive on windows, for absolute paths? e.g.

          CR = system("C:/home/phl/Projects/vf/src/tst");

Damon





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