   help in making pause function?
  Is there a pause function in windows to call or do I just make my own pause?If I make my own pause. How do I wait for a key do be pressed? 
  while (!My_Function_KeyPressed(SOME_KEY)); ;  i dont understand what thats doing ^^^^ , and a simpler way would be to just dogetche();make sure to #include <conio.h> ;  You could use WM_KEYDOWN,WM_KEYUP if I understand what your asking BOOL key[256];//...WM_KEYDOWN: key[wParam]=TRUE;break;WM_KEYUP: key[wParam]=FALSE;break;Iterate through the array and check if any value is true...[edited by - NullPointer33 on February 18, 2004 9:34:25 PM];  I am trying to press P or pause and have my program wait tell I hit the same button agin.I just wont it to break from the loop and wait then go back were it left off. ;  #include <time.h>...void pause(int h_time){time_t startTime=time(NULL);time_t endTime=startTime;while(difftime(endTime,startTime)<h_time){endTime=time(NULL);}return;}EDIT: punctuation   [edited by - 4 on February 18, 2004 10:09:50 PM];  the answer you want is simplegetche();will pause the console and wait till a user presses a key, then once they do it will continue on with the code. just include conio.h   [edited by - graveyard filla on February 18, 2004 10:12:13 PM];  right I can pause in console but I Want to pause in windows   [edited by - kingpinzs on February 18, 2004 10:49:52 PM];  one way is to keep a gamestate variable and when a certain key is pressed set it to true for paused.  then process nothing until key is pressed and gamestate is set to false again.  i dont know of any way to actually pause the entire system because of the way windows works =(  then again i suck at programming 