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



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 lists ximian com a ?crit :

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




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