thank you, i tried the ToAscii function but got stuck: how can i supply the first and the second parameters? i only have access to wParam and lParam of the messages. thank you.
yes, thank you very much it has resolved! i thought since the function resides inside dll it will get the handle of the dll. i spent a few days troubleshooting this problem, thank you very much!
I also STRONGLY reocmmend you call your HookProc something ELSE. That name is too common and might also get you into trouble with other linkage and project dependencies later. No shirt, no shoes, no brains, no service.