gpt4 book ai didi

windows - Delphi 7 可以通过 OLE Variant 传递 Int64 值吗?

转载 作者:可可西里 更新时间:2023-11-01 13:55:21 26 4
gpt4 key购买 nike

我知道在 Delphi 5 中不可能将 Int64 写入 Variant 和 OLEVariant,因此无法在 COM 服务器的类型库 (TLB) 文件中使用它。

有没有人知道或使用过 Delphi 7 关于在 COM 服务器接口(interface)中使用 int64 值的经验?

最佳答案

在 Delphi 7 变体中对 Int64 没有限制:以标准方式支持:

确实有OLE/COM兼容的类型定义

varInt64    = $0014; { vt_i8          20 }

System.pas单元中,所有需要转换的都在Variants.pas单元中。

我确认它在 Delphi 5 中不受支持。

关于windows - Delphi 7 可以通过 OLE Variant 传递 Int64 值吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54193764/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com