An easy version of "cout" for win 32

Started by
1 comment, last by TheTempest 21 years, 8 months ago
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
"There are no such things as stupid questions...Just stupid people :)"-Me
Advertisement
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.
___________________________Freeware development:ruinedsoft.com
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
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]

This topic is closed to new replies.

Advertisement