[Glade-users] Re: Glade-users Digest, Vol 6, Issue 12

Philippe Lefevre ph.l at libertysurf.fr
Mon Oct 17 15:32:11 EDT 2005


Hello all,

Finally, I've found where was my mistake.
Thank you anyway Damon who put me on the way.

I used CR = system("/home/phl/Projects/vf/src/tst"); which is the cygwin 
path
as I would do with a unix box
instead of CR = system("/cygwin/home/phl/Projects/vf/src/tst"); witch is 
the real window path

PhiL

glade-users-request at lists.ximian.com a écrit :

>Message: 4
>Date: Sun, 16 Oct 2005 20:34:56 +0100
>From: Damon Chaplin <damon at karuna.uklinux.net>
>Subject: Re: [Glade-users] Problem with glade/cygwin32 ?
>To: Philippe Lefevre <ph.l at libertysurf.fr>
>Cc: glade-users at lists.ximian.com
>Message-ID: <1129491296.3824.9.camel at eternity>
>Content-Type: text/plain; charset=ISO-8859-1
>
>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
>  
>


More information about the Glade-users mailing list