解决Delphi程序在非中文系统下乱码

it2022-07-02  108

在工程文件头加入 Windows引用

在begin后加入

SetThreadLocale(    DWORD(Word(SORT_DEFAULT) shl 16) or    DWORD(Word(SUBLANG_CHINESE_SIMPLIFIED) shl 10) or    DWORD(Word(LANG_CHINESE))    );

原理:设置程序的所在区域

方法来自互联网,备忘~

转载于:https://www.cnblogs.com/lojon/archive/2010/11/23/1885966.html


最新回复(0)