...and that is what I was trying to do!, thanks to you and Andy, I will take a look in MS site for further researchs. Wow! It "works", in all "senses" of the word. (strictus et lato) Best Regards, Dennis Crawley Argentina Xiaofan Chen wrote: > With Visual C++ 2005 Express Edition Beta 2 (free download > from Microsoft), the attached code can be built. > > Using kbhit() is also okay but the warning message says that > kbhit() is deprecated. > > Regards, > Xiaofan > > #include > #include > #include > > int main(void) > { > float n=0; > > while (!_kbhit()) { > printf("\r%3.0f",n++); > } > printf("\n"); > > > system("PAUSE"); > return 0; > } > > The following is the supplied example code for _kbhit(). > // crt_kbhit.c > // compile with: /c > /* This program loops until the user > * presses a key. If _kbhit returns nonzero, a > * keystroke is waiting in the buffer. The program > * can call _getch or _getche to get the keystroke. > */ > > #include > #include > > int main( void ) > { > /* Display message until key is pressed. */ > while( !_kbhit() ) > _cputs( "Hit me!! " ); > > /* Use _getch to throw key away. */ > printf( "\nKey struck was '%c'\n", _getch() ); > } > > > On 10/9/05, Dennis Crawley wrote: >> Thank you for this informaton Spehro, >> I use Dev-C++ too. >> Regards, >> Dennis. >> >> >> Spehro Pefhany wrote: >>> At 04:43 PM 10/8/2005 -0300, you wrote: >>> Compiling it as a C console application under Dev-C++ >>> Win2K yields the expected results. >>>> Best regards, >> >> >> >> >> >> >> >> ___________________________________________________________ >> 1GB gratis, Antivirus y Antispam >> Correo Yahoo!, el mejor correo web del mundo >> http://correo.yahoo.com.ar >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist ___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist