I have a dll routine that returns a UInt32. I gather that the Delphi cardinal type is equivalent to this type. I'd like to display the UInt32 value as a string. However inttostr () assumes the argument is a signed Int32 so it will sometimes return a string that has the appearance of a negative value. Is there a way to convert a cardinal into its unsigned string representation?
Using XE6.
IntToStr()
has anInt64
version, not just anInteger
version. Also, Delphi 2009 and later have an actualUInt32
type, you should use that instead ofCardinal
. – Remy Lebeau