[linux-programlama] Re: bana mantıksız geliyor

---------

From: ATILIM BOY (boyatilim@yahoo.com)
Date: Sun 21 Sep 2003 - 09:12:59 EDT

  • Next message: Ahmet Aksoy: "[linux-programlama] PHP-MySQL dokuman sistemi"

    Environment farki olabilir...

    ATILIM BOY

    --- Necati DEMiR <necati_linux@yahoo.co.uk> wrote:
    > Merhabalar,
    >
    > niye bir program cift tiklama ile acilinca bir sorun
    > meydana gelir de konsoldan ./program yazip
    > calistirinca cok guzel çalisir.
    >
    > asagidaki fonksiyonu calistirinca yukarida dedigim
    > olay meydana geliyor.
    >
    > "button2"yi tikliyorum ve crash...
    >
    > void
    > on_button2_clicked (GtkButton *button,
    > gpointer user_data)
    > {
    >
    > FILE *fp;
    > fp=fopen("lang.lang","r");
    > int say_deg;
    > char deg0[255];
    > char deg1[255];
    > char deg2[255];
    > char deg3[255];
    > char deg4[255];
    > char deg5[255];
    > GtkWidget *label_dev;
    > GtkWidget *label_lang;
    > GtkWidget *label_ok;
    > GtkWidget *label_chang;
    > label_dev=lookup_widget(button,"label1");
    > label_lang=lookup_widget(button,"label2");
    > label_ok=lookup_widget(button,"label3");
    > label_chang=lookup_widget(button,"label4");
    > fseek (fp, 0, 0);
    > fscanf(fp," %s %s %s %s %s
    > %s",deg0,deg1,deg2,deg3,deg4,deg5);
    > gtk_label_set_text(label_dev,deg1);
    > gtk_label_set_text(label_lang,deg2);
    > gtk_label_set_text(label_ok,deg3);
    > gtk_label_set_text(label_chang,deg4);
    > fclose(fp);
    > }
    >
    > Necati
    >
    > -----
    >
    >
    > ---------------------------------
    > Want to chat instantly with your online friends? Get
    > the FREE Yahoo!Messenger
    >
    >

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    http://sitebuilder.yahoo.com


  • Next message: Ahmet Aksoy: "[linux-programlama] PHP-MySQL dokuman sistemi"

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.