TranslateMessage() without a window?
I am ultimately trying to convert virtual key codes into ascii character codes; I am trying to make use of the function TranslateMessage() as it appears to do exactly what I want. Although this funcion works fine when using a window, for some reason it wont work without one.
My plan was to send 'dummy' WM_KEYDOWN/WM_KEYUP to my message loop thread with PostThreadMessage() and it would spit out WM_CHAR messages. However, it just refuses to create WM_CHAR messages no matter what I try. MSDN doesn't state that a window is required in order to use it, I just can't understand the problem.
If anybody has any ideas at all why this isn't working I'd be very greatful. Thanks
P.S. If anybody wants some sample source code to demonstrate the problem, I'll be happy to whip some up.