Search:

Type: Posts; User: dereach

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    56,922

    int to float conversion

    Hi!

    I'd like to convert 32int into float value.
    Direct cast does not work in a way I expected.
    ex:
    in hex BFFFF2E5
    singned int -1073745179

    When I cast
  2. Replies
    9
    Views
    10,101

    Thanks for help. However I don't understand how...

    Thanks for help.
    However I don't understand how to use Your tip.
    Piece of code would help how to convert int to float and use "dereference-cast-to-float-pointer-address-of".

    Why I need to store...
  3. Replies
    9
    Views
    10,101

    Yes. num=3f800000 wynik=0000803f

    Yes.
    num=3f800000
    wynik=0000803f
  4. Replies
    9
    Views
    10,101

    float and binary write to file

    Hi
    I'd like to write files with binary content (.vtk)

    I need to put to file some data-points.
    I know that inside file should I get (I know because I compared with some other correct written...
  5. Replies
    5
    Views
    1,699

    Thats right. Thanks for help.

    Thats right.

    Thanks for help.
  6. Replies
    5
    Views
    1,699

    Binary read from file

    Hi!
    I'm trying read data from binary file.

    File looks in hex editor:
    12 1A 15 00 AD AE 11 00 16 00

    I use getc to recive data.
  7. Replies
    2
    Views
    1,656

    Stupid mistake

    Hi

    You are right. Mistake was in ....
    It takes some time to find it. Local variable cover global and there was no access.
    But now it works correct.

    Thanks a lot :-)

    Daniel
  8. Replies
    2
    Views
    1,656

    Global acess to dynamic allocated data

    Hello

    I'm trying write program in GTK/C. Inside one callback function (called on button click) I read data from file and allocate them dynamic.



    extern gfloat *X;

    void...
  9. Replies
    2
    Views
    1,681

    callbacks

    Thanks for tips.
    I also found inforamtion about function: lookup_widget() or glade_get_widget_tree (GTK_WIDGET (....));
    It means I can find pointers to other wigets in window and use them.
    Next...
  10. Replies
    2
    Views
    1,681

    Sending information to callback function GTK

    Hi!

    I started writing code in GTK+Glade and ... I stopped.
    I don't have idea how to send information to callback function.
    Mainly in GTK the is only one place to send variables to callback...
  11. Replies
    2
    Views
    1,483

    Thanks a lot. I did not have idea how exactly...

    Thanks a lot.
    I did not have idea how exactly works g_idle_add function.


    Daniel
  12. Replies
    2
    Views
    1,483

    Problem with structures

    Hi

    I tried make one of my first program with GTK, but I found problem.
    I wanted to use g_idle_add, and I need also send to my function
    function few informations:



    GtkWidget *box_1, *box_2;
Results 1 to 12 of 12