Search:

Type: Posts; User: iwabee

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    10,412

    And what if mozilla suite isn't installed? How...

    And what if mozilla suite isn't installed? How can I open a page in the default browser?
  2. It could be just me, but I think that by "command...

    It could be just me, but I think that by "command line" he means stdin. In which case this FAQ entry holds the answer.
  3. Replies
    7
    Views
    3,281

    > One of the things it seems to be doing with esp...

    > One of the things it seems to be doing with esp for example is making sure it's aligned on a 16-byte boundary. This is to ensure optimal access to local variables later on.

    Yeah, but these lines...
  4. Replies
    2
    Views
    1,345

    Perhaps you'd like to use GtkTable...

    Perhaps you'd like to use GtkTable in this case.


    GtkWidget *table, *textbox1, *listview, *textbox2;

    table = gtk_table_new(5, 4, TRUE);
    gtk_table_set_col_spacings(GTK_TABLE(table), 6);...
  5. Replies
    2
    Views
    840

    ANSI C defines a[i] as *((a) + (i)). So there's...

    ANSI C defines a[i] as *((a) + (i)). So there's really no difference in which one comes first, pointer or index.
  6. Replies
    15
    Views
    1,706

    What's the deal with all those casts? X =...

    What's the deal with all those casts?

    X = (double)rand() / (RAND_MAX + 1);

    As for that integral. Correct me if I'm wrong, but for the given task this should suffice:

    double definite_integral...
  7. Thread: glade?!!

    by iwabee
    Replies
    1
    Views
    1,220

    Go to the Signals tab of your button properties...

    Go to the Signals tab of your button properties and add "clicked" signal. It will create a callback function into callbacks.c file.
  8. Replies
    0
    Views
    968

    libGlade in threaded program

    Does anyone know if libglade is thread safe or do I have to enclose all calls into gdk_threads_enter() and gdk_threads_leave()? I'm mostly interested in GladeXML object..
  9. Replies
    38
    Views
    5,486

    Here's a pretty interesting page. It asks you a...

    Here's a pretty interesting page. It asks you a couple of questions and suggests a distro.
    http://www.zegeniestudios.net/ldc/
  10. Replies
    4
    Views
    1,690

    Valgrind didn't found anything wrong with that...

    Valgrind didn't found anything wrong with that code, but from your other post I assume that you're compiling it on Solaris.
    You _coud_ try not to use deprecated widgets and functions... Migrating...
  11. Replies
    1
    Views
    2,146

    hmm... it seems I haven't been reading glib...

    hmm... it seems I haven't been reading glib reference manual close enouhg. I just needed to add watch for hangup condition (G_IO_HUP).
  12. Replies
    1
    Views
    2,146

    GIOChannel problem

    I want to execute a program from my GTK+ application and get it's stdout output. After a little research I've turned to glibs GIOChannel. But I can't figure it out how can I detect the end of input....
  13. Replies
    5
    Views
    16,600

    what about defining NDEBUG to disable assert and...

    what about defining NDEBUG to disable assert and other debug macros?
    any others define symbols to control debugging?
  14. Replies
    9
    Views
    34,459

    Redirecting stdout, stderr and stdin

    How can I redirect sandard IO handlers of program A, which I have Spawnl:ed from my main program?
  15. Replies
    4
    Views
    1,106

    You shold not call EnumChildWindows in it's...

    You shold not call EnumChildWindows in it's callback function, it is done automatically. Also use stricmp to find buttons as they are case insensetive(at least I thik so). Try this corrected code,...
  16. Replies
    6
    Views
    1,636

    linuxdude it's int **ptr; byt anyway, it's quite...

    linuxdude it's int **ptr;
    byt anyway, it's quite limiting, because you are forced to use indexing. I wold probably go for
    int *tbl = malloc(sizeof(*tbl)*TBL_N*TBL_M);
    tbl[n*TBL_M+m] = a;...
  17. Replies
    4
    Views
    6,620

    I think he means clear as in destroy, erase,...

    I think he means clear as in destroy, erase, incinerate or make-so-it's-lengt-wold-be-0.

    EDIT: linuxdude, why wold anyone want to fill entire string with null characters?
  18. Replies
    4
    Views
    6,620

    An empty string is represented by pointer to null...

    An empty string is represented by pointer to null character.
  19. Thread: COM and C

    by iwabee
    Replies
    2
    Views
    966

    thanks man.

    thanks man.
  20. Thread: COM and C

    by iwabee
    Replies
    2
    Views
    966

    COM and C

    I've been wondering for some time now how can I access COM objects using C? Is it even possible? How?
  21. Thread: File

    by iwabee
    Replies
    4
    Views
    878

    in windows you should use: #include...

    in windows you should use:

    #include <windows.h>

    CreateDirectory("PASTE", NULL);
    SetCurrentDirectory("PASTE");
    ...fopen...fwrite...fcloseAnd of course moving and renaming file is done by...
  22. Replies
    6
    Views
    3,171

    thinking is allowed... while (fgets(temp, 256,...

    thinking is allowed...
    while (fgets(temp, 256, fp) != NULL)
    {
    char *t = temp;
    while ((t = strstr(t, searchStr)) != NULL)
    {
    t += length_of_searchStr;
    found++;
    }...
  23. Replies
    6
    Views
    3,171

    of course it doesn't, you have defined searchStr...

    of course it doesn't, you have defined searchStr as a pointer. Only few functions will allocate memory for you, you know...
    anyway, you have also to check for '\n' (too small buffer?) and replace it...
  24. Replies
    7
    Views
    1,027

    hmm... why not just use sscanf()? char...

    hmm... why not just use sscanf()?


    char szStr[] = "123abc";
    int a;

    sscanf(szStr, "%d", &a); // Will read 123 into a
  25. There's no equivalent functions to these, but you...

    There's no equivalent functions to these, but you can use Win32Api to do it. Read console tutorials from http://www.adrianxw.dk/SoftwareSite/index.html and know.
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4