Project: SWT
Bug 21192 UnsatisfiedLinkError thrown when pressing a hardware key
Reported: 2002-07-02 18:53:34 | Status: resolved fixed

Using SWT 2047 on PocketPC I get an UnsatisfiedLinkError on OS.VkKeyScanW(S)S in Control#WM_KEYDOWN. OS.VkKeyScanW is not part of the 2047 SWT DLL for PocketPC (I believe the function does not exist on this platform). If I comment the snippet below for PocketPC it works fine: for (int i=0; i<ACCENTS.length; i++) { int value = OS.VkKeyScan (ACCENTS [i]); if ((value & 0xFF) == wParam && (value & 0x600) == 0x600) { return null; } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java