Mail Archives: djgpp/2002/01/23/05:56:16
--- Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> Something is wrong with the rest of your code:
> kbhit() _is_ the function
> you are looking for. It returns immediately,
> without waiting for a key
> to be pressed.
This is what my code looks like:
if(kbhit()==0){
if(getkey()==3){
interrupt();
}
}
printf("Reading...\n");
COMReadBufferTimed(DJGPPdev,anmes,NULL,256,&charsin,1000);
I know that the program doesn't work, 'cause I never
see the "Reading..." on the screen. It also doesn't go
to interrupt, 'cause then the progam has to stop
(interrupt closes the port and exits)...
What is the problem with my code???
Roland
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
- Raw text -