delphi – Codepage 0是什么?

我正在使用Delphi功能

StringCodePage

我在COM函数返回的字符串上调用它(Acrobat Annotation getContents – 请参阅我的其他帖子),它返回0.

什么是0?安思?

解决方法

代码页0是CP_ACP,当前Windows ANSI代码页.

来自Windows.pas:

{$EXTERNALSYM CP_ACP}
CP_ACP                   = 0;             { default to ANSI code page }

MSDN开始:

CP_ACP

The current system Windows ANSI code page. This value can be different on different computers,even on the same network. It can be changed on the same computer,leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should be done using UTF-16 or UTF-8 if possible.

相关文章

 从网上看到《Delphi API HOOK完全说明》这篇文章,基本上都...
  从网上看到《Delphi API HOOK完全说明》这篇文章,基本上...
ffmpeg 是一套强大的开源的多媒体库 一般都是用 c/c+&#x...
32位CPU所含有的寄存器有:4个数据寄存器(EAX、EBX、ECX和ED...
1 mov dst, src dst是目的操作数,src是源操作数,指令实现的...