Thank you :)
Type: Posts; User: dandago
Thank you :)
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...
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...
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...
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...
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>...
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...
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...
Hi,
Given a HWND, how can I get the width and height of a window?
Thanks,
Daniel