简体   繁体   中英

Can Delphi 7 pass Int64 value through OLE Variant?

I know that in Delphi 5 it is impossible to write Int64 to Variant and OLEVariant and so, to use it in Type Library (TLB) file of COM Server.

Does anybody know or had experience with Delphi 7 regarding of usage int64 values in COM Server interfaces?

No restriction on Int64 in Delphi 7 variants: it is supported, in the standard way:

There is indeed the OLE/COM compatible type definition

varInt64    = $0014; { vt_i8          20 }

in the System.pas unit, and all needed conversion in the Variants.pas unit.

I confirm it was not supported in Delphi 5.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM