Frage

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?

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top