如何在C#中创建输入法? [英] How Do I make An Input Method In C#?
本文介绍了如何在C#中创建输入法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
怎么样?极其困难。 C#不适合这样做。
您可以找到IME的示例 here [ ^ ]。它是用C ++编写的。由于你必须接近Windows以及与SDK的交互的复杂性,最好用C或C ++编写IME。
如果你尝试在C#中,你最终会用C#重写一堆SDK,从而增加了你必须做的工作量。
I want to make an input method (IME) with C#, like Sogou input method, most of the input method is developed by C++, I want to use C# to achieve. Seeking the source code or Making ideas,thank u!
解决方案
How? With extreme difficulty. C# is not an appropriate language to do this in.
You can find a sample of an IME here[^]. It's written in C++ for a reason. Because of how close you have to get to Windows and the complexity of the interaction with the SDK, it's best to write an IME in C or C++.
If you attempt this in C#, you'll end up rewriting a bunch of the SDK in C#, thereby increasing the amount of work you have to do.
这篇关于如何在C#中创建输入法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文