문제

I compile dll with VS2010 but I have problems with changing keyboard layout. I am running Windows 7.

GetKeyboardLayout(0); //Returns previous layout
LoadKeyboardLayout("00000409", KLF_ACTIVATE);
GetKeyboardLayout(0); //Returns 04090409 (English layout)

But the layout is NOT changed. One may say that I am doing something wrong but if I change "00000409" to any other language ID for example to russian "00000419" layout is changed perfectly. The problem occurs only with English layout.

The same problem occur when I use ActivateKeyboardLayout when all layouts are switched ok but english don't work.

What king of problem it can be?

도움이 되었습니까?

해결책

This bug made my day. Everything work OK after reboot.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top