Click here to Skip to main content
15,908,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Spinner and edit control Pin
RChin24-Jun-03 4:33
RChin24-Jun-03 4:33 
GeneralInteraction with system Pin
Still learning how to code24-Jun-03 2:06
Still learning how to code24-Jun-03 2:06 
GeneralRe: Interaction with system Pin
Neville Franks24-Jun-03 11:51
Neville Franks24-Jun-03 11:51 
QuestionHow many Desktop can i create with CreateDesktop Pin
Thomas Mathew24-Jun-03 1:53
Thomas Mathew24-Jun-03 1:53 
Generalprinter event Pin
acatalfo24-Jun-03 1:47
acatalfo24-Jun-03 1:47 
GeneralRe: printer event Pin
Duncan Edwards Jones24-Jun-03 2:07
professionalDuncan Edwards Jones24-Jun-03 2:07 
GeneralActiveX - Error 450 in Visual Basic Pin
Ishwari24-Jun-03 1:47
Ishwari24-Jun-03 1:47 
QuestionConsole app - how to "keep alive" ? Pin
MrBean24-Jun-03 0:54
MrBean24-Jun-03 0:54 
I'm developing a Win32 console app in VC++ 6.0 where I have coded a edit box which works fine... however running my console app on Windows 98, my app affects the speed of the computer.

I have tracked the problem down to my "main input loop" where my app wait for the user to press a key.
The main loop (very simple!) looks something like this :

BOOL bOK=TRUE;
int cKey;
while (bOK)
{
    // Wait for keystroke...
    while (!_kbhit())
    {
      // Do nothing...
    }    

    // Getting the key...
    cKey = _getch();

    // Process the key here...
    // and so on and so on...
}


So my question is : is there a "proper" way to wait for a input chars in a console app which does not slow down Windows 9x ?

Please help, thanks Smile | :)
AnswerRe: Console app - how to "keep alive" ? Pin
Rage24-Jun-03 1:13
professionalRage24-Jun-03 1:13 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 1:22
MrBean24-Jun-03 1:22 
GeneralRe: Console app - how to "keep alive" ? Pin
Peter Weyzen24-Jun-03 10:52
Peter Weyzen24-Jun-03 10:52 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:59
MrBean24-Jun-03 22:59 
AnswerRe: Console app - how to "keep alive" ? Pin
Michael P Butler24-Jun-03 3:50
Michael P Butler24-Jun-03 3:50 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 3:55
MrBean24-Jun-03 3:55 
GeneralRe: Console app - how to "keep alive" ? Pin
nfactorial24-Jun-03 5:36
nfactorial24-Jun-03 5:36 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:56
MrBean24-Jun-03 22:56 
AnswerRe: Console app - how to "keep alive" ? Pin
David Crow24-Jun-03 3:58
David Crow24-Jun-03 3:58 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:57
MrBean24-Jun-03 22:57 
AnswerRe: Console app - how to "keep alive" ? Pin
peterchen24-Jun-03 9:35
peterchen24-Jun-03 9:35 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:56
MrBean24-Jun-03 22:56 
GeneralISO-8601 Date Format and COleDateTime Pin
Braulio Dez24-Jun-03 0:40
Braulio Dez24-Jun-03 0:40 
GeneralRe: ISO-8601 Date Format and COleDateTime Pin
Rage24-Jun-03 1:09
professionalRage24-Jun-03 1:09 
GeneralC# DLL and MFC app Pin
vikramlinux24-Jun-03 0:30
vikramlinux24-Jun-03 0:30 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 1:13
Kannan Kalyanaraman24-Jun-03 1:13 
GeneralRe: C# DLL and MFC app Pin
vikramlinux24-Jun-03 1:31
vikramlinux24-Jun-03 1:31 

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.