flat assembler
Message board for the users of flat assembler.

Index > Windows > Help with console application

Author
Thread Post new topic Reply to topic
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 21 Jan 2004, 04:39
Can anyone explain how to read a byte from the keyboard in a windows console application? I'm having difficulty getting this aspect of my code working properly.
Post 21 Jan 2004, 04:39
View user's profile Send private message Visit poster's website Reply with quote
VitalOne



Joined: 29 Jul 2003
Posts: 54
Location: USA
VitalOne 21 Jan 2004, 05:54
Code:
invoke GetStdHandle,STD_INPUT_HANDLE
invoke ReadConsole,eax,buffer,1,written_address,0 
    


This reads 1 byte into buffer (although you could type more)
Post 21 Jan 2004, 05:54
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.