Read keyboard scan codes, or how to capture ALT+Something
Posted on 2005-05-12
I need to write a consol program that will prompt the user to enter some text strings. The strings can be both in English or German. I need to be able to capture Function keys pressed, or better yet key combinations such as Alt+A and map them to umlaut a, o, and u.
My initial idea was to embed some asm code and use it for that purpose. However, whenever I try to execute even the simplest program with embedded asm that contains any interrupt vector, I get "First-chance exception in ChapterFour.exe: 0xC0000005: Access Violation". I'm using MSVS 6.