Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use the Ctrl?

Status
Not open for further replies.

GuyZana

Programmer
Jan 14, 2002
11
IL
Hello my friend,
I'm programming now a little software in C for dos,
i need to know how to do these things:
1. i'm using biokey() to read a key that pressed but instead
for waiting for a key i'm reading a key whenever a key is
pressed: like this:
if (bioskey(1))
key = bioskey(0);

i know the modifires(ctrl) are in bioskey(2) i deed this:
if (bioskey(1))
{
modifiers = bioskey(2); // check the modifiers
key = bioskey(0); // if key pressed than save it to key
}
and than i'm checking the modifires, but it doesn't work
if you know how to get the modifires please tell me

2. i have this problem with wav files, when the mouse is
working and there is wav playing my prog is getting stuck
i probably need to declare some where about critical task:
cti; but i don't know where and how, if you know please
tell me

Thanks from advanced,
Guy Zana
 
The CTRL, ALT, SHIFT etc... are some special keys that dont really call the interrupt unless some other key is pressed. Their state is stored in the keyboard buffer

0x00417 and 0x00418 hex hold the status of these keys. YOu can use a far pointer to access the values in here...

Roy.
user.gif
 
I started to study c-Languages nowday.
But, When I use the Function "bios.h", error is "Call to undefined function 'bioskey".
I don't know how to do solution.
I use the Borland C++ (V5.02)
help me!

procit@hanmail.net
procit@hotmail.com

thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top