Archived

This topic is now archived and is closed to further replies.

TheTempest

An easy version of "cout" for win 32

Recommended Posts

Hi all, Does anyone happen to know of an easy way to retrive keystrokes using win32. I''ve tried directInput, and it compiles fine, but when the program runs, the program crashes due to a "unhandled exception" fault. and i know this may be asking a bit much, but if anyone knows a good "cin" lib too that would just make my day thx for the time

Share this post


Link to post
Share on other sites
Win32 console applications can use cin and cout.
Otherwise, search the msdn libraries
http://search.microsoft.com/us/dev/?MSCOMTB=ICP_SEARCH%20MSDN

and I think the function is GetAsyncKeyState if you don''t want to use a console application.

Share this post


Link to post
Share on other sites
Check for my reply in this thread. It will solve your problem and is easier than using DirectInput.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book

Share this post


Link to post
Share on other sites