How to make the Microsoft IME Code Sample work with Windows 10?

Gabriel Arthur 6 Reputation points
2021-05-18T10:46:23.317+00:00

Hey all, I'm trying to create a custom IME for Windows 10. I had no idea where to start, so I looked around and eventually found the sample IME code Microsoft has provided. It said it was for Windows 8.1, but I thought that it may work with Windows 10. I downloaded it, studied the code, modified it for my purposes, complied the dll, installed it, and restarted.

The IME was in my language bar, and I could swap to it, just like any other language. However, the IME just didn't show anything on the taskbar (or it just showed an x with the info 'IME Unavailable') when I was trying to use it. I couldn't type anything with it, apart from when I was in Visual Studio or Discord (which it happily typed to, showing the controls and such in the taskbar like it's supposed to.) I've tested an unmodified copy of the code and I have come to the conclusion that it is clearly a compatibilty issue with Windows 10. This really bums me, as I really don't have any other option or documentation to go off, and I'm not really up to the task of creating an IME with the small amount of documentation provided by Microsoft. Is there any way to coerce this code into working fully with Windows 10, or is there an alternative IME creation method which will allow me to achieve the same thing? (I don't want to use MSKLC, that's not an IME and doesn't fit my requirements.)

Thanks in advance,
Gabe

EDIT: The sample can be downloaded here: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/master/Official%20Windows%20Platform%20Sample/Input%20Method%20Editor%20(IME)%20sample/%5BC%2B%2B%5D-Input%20Method%20Editor%20(IME)%20sample/C%2B%2B

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Fei Xue - MSFT 1,111 Reputation points
    2021-05-26T02:29:38.56+00:00

    @Gabriel Arthur , The code sample you shared is archived. you can refer the latest sample for Input Method Editor (IME) from here. And if you have an feedback or issue about this sample, please file an issue directly in
    Windows-classic-samples repository

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.