The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 equivalent of kbhit()
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tonyv

Germany
Posts

Posted - 03/29/2007 :  06:10:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,


I am using Origin 7.0 and I need a function equivalent of the C
kbhit(). It does not seem to be supported by my version. Could you help me?


Thanks

Tony

Mike Buess

USA
3037 Posts

Posted - 03/29/2007 :  07:58:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tony,

Apparently kbhit() is not defined as a part of the ANSI C/C++ standard but is used in Borland's compilers...
http://www.cprogramming.com/fod/kbhit.html

You might be able build your own version of the function from short WINAPI GetKeyState(int nVirtKey) under Global Functions::System. Prototype and virtual key definitions are in mswin.h.

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000