![](https://img-blog.csdnimg.cn/06488c12cc41453380935c82bb95b5e1.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
输入法开发
输入法开发。
雪靡
ACMer一名。
Github地址:https://github.com/nayaku
展开
-
C#用BinaryWriter写入String的时候,前面会多出一个字符或者乱码的问题
BinaryWriter在字符串前面写入一个字节或者两个字节,用来记录字符串的字节长度。参考:BinaryWriter.Write 方法 (System.IO) | Microsoft Docshttps://docs.microsoft.com/zh-cn/dotnet/api/system.io.binarywriter.write?redirectedfrom=MSDN&view=netframework-4.8#System_IO_BinaryWriter_Write_System.原创 2021-03-18 22:15:01 · 702 阅读 · 0 评论 -
.NET 6 运行在Win7 SP1上出错
错误信息:Failed to load the dll from [C:\Program Files\dotnet\host\fxr\6.0.0-preview.6.21352.12\hostfxr.dll], HRESULT: 0x80070057The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\6.0.0-preview.6.21352.12\hostfxr.dll fa原创 2021-08-05 14:42:51 · 6812 阅读 · 0 评论 -
Inno Setup 中文安装界面
[Languages]Name: "default"; MessagesFile: "compiler:Default.isl"Name: "chs"; MessagesFile: "compiler:Languages\ChineseSimp.isl"Name: "cht"; MessagesFile: "compiler:Languages\ChineseTrad.isl"添加了默认的英文语言包、简体中文语言包和繁体中文语言包。效果如下:其他语言包可以在<安装目录>\Langu原创 2021-02-19 23:28:01 · 891 阅读 · 0 评论 -
net5 failed to load the dll from [C:\Users\ZMK\Desktop\publish\coreclr.dll] HRESULT 0x80070057
解决方案:https://developercommunity.visualstudio.com/content/problem/805039/net-core-30-failed-to-load-dll.html需要下载KB2533623 补丁。下载地址:http://www.3h3.com/soft/119473.html原创 2020-12-04 17:22:22 · 1980 阅读 · 0 评论 -
获取输入法名字
参考来源:https://www.geek-share.com/detail/2680786863.html我设置在输入法切换,会显示输入法的名称输出结果:代码如下:TsfApp.h:#pragma once#define _CRT_SECURE_NO_DEPRECATE#include<windows.h>#include<WinUser.h>#include<msctf.h>#include<stdio.h>#ifndef SAFE_原创 2020-12-02 22:18:44 · 913 阅读 · 1 评论 -
Inno Setup 检测已安装的.NET Framework 版本支持检测.NET Framework 4.5 4.6 4.7 4.8
Inno Setup 检测已安装的.NET Framework 版本;.NET Framework 安装文件#define DotNetSetupFile "ndp48-web.exe"; 上述消息放置到脚本的顶部[Code]const CDotNetSetupFile = '{#DotNetSetupFile}';var VNeedRestart: boolean;function IsDotNetDetected(version: string; service: cardinal):原创 2021-02-19 23:18:40 · 2786 阅读 · 3 评论 -
ComRegisterFunctionAttribute
ComRegisterFunctionAttribute 使你能够添加任意注册代码以满足 COM 客户端的要求。 例如,你可以使用命名空间中的注册函数更新注册表 Microsoft.Win32 。 如果提供了注册方法,还应将应用 System.Runtime.InteropServices.ComUnregisterFunctionAttribute 于注销方法,这会反转注册方法中完成的操作。.NET Framework: 公共语言运行时使用此属性调用方法,方法是将其包含的程序集注册 (直接或间接) 使用原创 2020-12-02 10:10:55 · 468 阅读 · 0 评论 -
SerializationException 无法找到程序集 C#反序列化无法找到程序集问题
System.Runtime.Serialization.SerializationException:“无法找到程序集“Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”。”新建一个类UBinder:public class UBinder : SerializationBinder { public override Type BindToType(string assemblyName, strin原创 2021-02-15 14:53:39 · 2309 阅读 · 0 评论 -
C# linq的Take和Skip存在先后顺序
原语句为var q = _list.AsParallel().WithCancellation(tokenSource.Token).Where(item => item.IsBeginWith(syllables)).OrderByDescending(item => item.Syllables.Length).ThenByDescending(item => item.Frequency).Take(num).Skip(skip);linq的Take和Skip存在先后顺序。如果这样原创 2021-01-21 15:46:27 · 668 阅读 · 0 评论 -
CA1416警告:平台兼容性问题
来源:https://docs.microsoft.com/zh-cn/dotnet/core/compatibility/code-analysis/5.0/ca1416-platform-compatibility-analyzer.NET code analyzer rule CA1416 is enabled, by default, starting in .NET 5.0. It produces a build warning for calls to platform-specific原创 2020-12-02 10:09:54 · 2841 阅读 · 0 评论 -
C++ Windows库函数末尾添加“A”和“W”的意义
Windows API函数对字符处理有3种格式:Windows一般代码格式(Windows code page),用A来指代ANSI。Unicode格式,用W来指代宽字符(Wide)。通常大部分版本均会编译为Windows一般代码格式或者Unicode格式。一些最新的方法只有Unicode版本。更多信息请参考函数原型的约定.以ModifyMenu(...)函数为例,其宏定义如下:#ifdef UNICODE#define ModifyMenu ModifyMenuW#else#def原创 2020-12-04 20:42:04 · 1934 阅读 · 0 评论 -
.NET 5.0 发布
于2020-11-10发布。地址:Download .NET 5.0 (Linux, macOS, and Windows)https://dotnet.microsoft.com/download/dotnet/5.0What’s new in .NET 5 | Microsoft Docshttps://docs.microsoft.com/zh-cn/dotnet/core/dotnet-five原创 2020-11-12 17:19:23 · 256 阅读 · 0 评论 -
C#开发输入法(TSF)
使用TSF-TypeLib库,具体使用例子可以参考这个项目:https://github.com/copyliu/YIME由于TSF-TypeLib的作者已经好久没更新了,现在我fork了一个库,专门用来修护其中BUG。欢迎大家提交Issue。https://github.com/736248591/TSF-TypeLib...原创 2020-10-20 19:58:07 · 2766 阅读 · 0 评论 -
输入法开发日记
2020年7月26日C++11(及现代C++风格)和快速迭代式开发 – 刘未鹏 | Mind Hacks《C++ Primer Plus》(第6版)2020年7月27日IME输入法编程心得 - FreedomShe - 博客园https://www.cnblogs.com/freedomshe/archive/2012/11/30/ime_learning.html“/ZI”和“/Gy-”命令行选项不兼容解决方案:右键项目,打开属性对话框。配置属性 > C/C++ > 常规原创 2020-08-04 15:41:21 · 5186 阅读 · 12 评论 -
WPF显示窗口的时候,不获取焦点
给WPF的Windows窗口设置GetActiveWindow属性为false。属性说明为:获取或者设置一个值,只是首次显示时候,将激活窗口。然后调用Show就不会获取到焦点了。原创 2020-11-04 17:22:37 · 1836 阅读 · 4 评论