Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPropertypages problem Pin
DrRayen13-Mar-04 4:42
DrRayen13-Mar-04 4:42 
Generalstart button Pin
gonenb13-Mar-04 1:55
gonenb13-Mar-04 1:55 
GeneralRe: start button Pin
Maximilien13-Mar-04 3:22
Maximilien13-Mar-04 3:22 
GeneralRe: start button Pin
gonenb13-Mar-04 20:29
gonenb13-Mar-04 20:29 
GeneralRe: start button Pin
Prakash Nadar13-Mar-04 22:36
Prakash Nadar13-Mar-04 22:36 
GeneralRe: start button Pin
Michael P Butler13-Mar-04 22:23
Michael P Butler13-Mar-04 22:23 
GeneralRe: start button Pin
gonenb16-Mar-04 21:02
gonenb16-Mar-04 21:02 
GeneralRe: Console Application Pin
Branislav13-Mar-04 3:48
Branislav13-Mar-04 3:48 
#include "stdafx.h"
#include <windows.h> // Sleep
#include <conio.h> // _getch, kbhit

#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
int state = 0;
int exit = 0;

while(1)
{
if(kbhit())
{
exit = _getch();
if(exit == 27) // ESC
break;
}

if(state == 0)
cout<< "\n STOP.\n";
else if(state == 1)
cout<< "\n Prepare to GO.\n";
else if(state == 2)
cout<< "\n GO.\n";
else if(state == 3)
cout<< "\n Prepare to STOP.\n";
state++;
if(state == 4) state = 0;
Sleep(1000);
}
return 1;
}
QuestionHow do I Dynamically Draw Lines with the Mouse Pin
Anonymous12-Mar-04 18:57
Anonymous12-Mar-04 18:57 
AnswerRe: How do I Dynamically Draw Lines with the Mouse Pin
Prakash Nadar12-Mar-04 19:46
Prakash Nadar12-Mar-04 19:46 
GeneralRe: How do I Dynamically Draw Lines with the Mouse Pin
Anonymous13-Mar-04 19:45
Anonymous13-Mar-04 19:45 
AnswerRe: How do I Dynamically Draw Lines with the Mouse Pin
Christopher Lloyd13-Mar-04 8:08
Christopher Lloyd13-Mar-04 8:08 
GeneralCALLBACK Pin
Shi Zhu12-Mar-04 18:01
Shi Zhu12-Mar-04 18:01 
GeneralRe: CALLBACK Pin
l a u r e n12-Mar-04 20:21
l a u r e n12-Mar-04 20:21 
GeneralRe: CALLBACK Pin
Prakash Nadar12-Mar-04 22:29
Prakash Nadar12-Mar-04 22:29 
GeneralRe: CALLBACK Pin
Rickard Andersson2012-Mar-04 23:49
Rickard Andersson2012-Mar-04 23:49 
GeneralRe: CALLBACK Pin
Prakash Nadar13-Mar-04 1:54
Prakash Nadar13-Mar-04 1:54 
GeneralRe: CALLBACK Pin
Prakash Nadar13-Mar-04 3:19
Prakash Nadar13-Mar-04 3:19 
GeneralRe: CALLBACK Pin
Rickard Andersson2013-Mar-04 5:30
Rickard Andersson2013-Mar-04 5:30 
GeneralRe: CALLBACK Pin
Prakash Nadar13-Mar-04 5:51
Prakash Nadar13-Mar-04 5:51 
GeneralRe: CALLBACK Pin
Rickard Andersson2013-Mar-04 5:58
Rickard Andersson2013-Mar-04 5:58 
GeneralRe: CALLBACK Pin
Prakash Nadar13-Mar-04 14:11
Prakash Nadar13-Mar-04 14:11 
GeneralRe: CALLBACK Pin
Rickard Andersson2013-Mar-04 14:17
Rickard Andersson2013-Mar-04 14:17 
GeneralRe: CALLBACK Pin
Shi Zhu13-Mar-04 1:15
Shi Zhu13-Mar-04 1:15 
GeneralRe: CALLBACK Pin
Gary R. Wheeler13-Mar-04 5:45
Gary R. Wheeler13-Mar-04 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.