Search:

Type: Posts; User: dandago

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    8,291

    Thank you :)

    Thank you :)
  2. Replies
    4
    Views
    8,291

    Detecting keypress

    I just remembered an old problem I once had. I once needed to detect a keypress for a game (e.g. user presses C and program takes the appropriate action without waiting for him to press ENTER). At...
  3. Replies
    14
    Views
    5,134

    You can check out the slides of the University I...

    You can check out the slides of the University I attend for some example resource scripts:
    http://www.cs.um.edu.mt/~kguil/csa2100.html

    The part on resources starts on slide 90, and is not that...
  4. Replies
    2
    Views
    4,637

    Multi-platform makefile

    Hi,

    I'm working on a project that needs to compile on two different computer architectures.

    One of them requires extra parameters to be passed to gcc when compiling, namely -lnsl -lsocket. The...
  5. Replies
    8
    Views
    2,289

    Thanks for your help. I didn't really understand...

    Thanks for your help. I didn't really understand how those signal sets and masks and stuff work, but I still followed the hint that signal handlers are being reset to default behaviour, and I made a...
  6. Replies
    8
    Views
    2,289

    Hi, I'm working on this signals problem with...

    Hi, I'm working on this signals problem with cnchybrid. The code he pasted must have been an old, flawed version. This is the latest version of pause.c:



    #include <stdio.h>
    #include <signal.h>...
  7. Replies
    7
    Views
    1,868

    I think you need a variable for the 'game loop'....

    I think you need a variable for the 'game loop'. Declare a variable like:

    bool quit = false;

    Then put your event handling in a loop that checks whether quit is still false.



    while (quit...
  8. Replies
    3
    Views
    1,744

    Thanks. I didn't think it'd be so...

    Thanks. I didn't think it'd be so straightforward.

    HWND is some kind of pointer, no? If it points to some kind of struct related to the window, is it possible to get the width and height from it...
  9. Replies
    3
    Views
    1,744

    getting window size

    Hi,

    Given a HWND, how can I get the width and height of a window?

    Thanks,

    Daniel
Results 1 to 9 of 9