delphi - System.IntNN、System.UIntNN 版本要求

标签 delphi compatibility

第一个具有 Int8Int16Int32UInt8 的 Delphi 版本是什么UInt16UInt32 在系统单元中声明。

我需要使用哪个 VERnnn 条件符号或 RTLVersion 值进行检测?

最佳答案

我不知道你的问题的答案。但是,您可以通过在全局包含文件或代码中所有其他单元使用的单元中使用这样的代码来避免需要知道:

{$IF Declared(System.Int8)}
{$ELSE}
type
  Int8   = ShortInt;
  Int16  = SmallInt;
  Int32  = Integer;//or Longint if you prefer
  UInt8  = Byte;
  UInt16 = Word;
  UInt32 = Cardinal;//likewise for Longword
{$IFEND}

关于delphi - System.IntNN、System.UIntNN 版本要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6238766/

相关文章:

delphi - 使用 MSBuild 编译 Delphi 2010 项目

delphi - 使用 FireDac 将日期插入 MS Access 数据库

delphi - 将返回键发送到模拟控制台应用程序

android - Delphi XE6 和 Android(estimote beacon sdk) ClassCastException

html - 元素在其他浏览器中调整大小?

javascript - jQuery .is (":visible") 不工作

java - 我可以在 Java 7 应用程序中使用使用 Java 8 编译的库吗?

delphi - 帮助用Delphi 7创建gpx文件

c++ - 如何在 MSVS 中为 Windows XP 编译 C++ 应用程序?

visual-studio-2008 - 我可以在 Windows Vista x64 上运行 Visual Studio 2008 x86 吗?