Hi. I'd like to get rid of a problem with this code (same as before):
while (1) {
WaitResult = WaitForSingleObject(hStdin, 5000);
if (WaitResult == WAIT_OBJECT_0)
{
...
Type: Posts; User: Verbenaca
Hi. I'd like to get rid of a problem with this code (same as before):
while (1) {
WaitResult = WaitForSingleObject(hStdin, 5000);
if (WaitResult == WAIT_OBJECT_0)
{
...
Hi, just a follow up question to this thread. So how would you write the code if you have 3 numbers, for example, 60% probability of generating 0, 35% generating 1 and 5% generating 2. Thanks a lot:)
Hi. I was wondering if I can make the pseudo-random rand() function more random?
I'm generating a random number between 0 and 2 for 30 times:
for(int i=1; i<=30; i++)
notification_rand =...
Hi. Can someone see what is wrong with this section of code?
while(1)
{
ReadConsoleInput(hStdin,irInBuf,128, &cNumRead);
if (irInBuf[cNumRead-1].Event.MouseEvent.dwButtonState ==...
Thank you for the reply! (the program works now:)) And sorry about posting it on the wrong board!
Hi. I'm writing a console program that uses ReadConsoleInput() to receive input from a mouseclick. My problem is that the program gets "stuck" at ReadConsoleInput() when there are no "events". I need...