I have been trying to encapsulate a VCL component to ActiveX component.
But I encountered the type conversion problem. I don't know which type in
ActiveX component is corresponding to the type of Cardinal in VCL. Is there
a corresponding table for this -- all types?
Thank you very much.
Xiaoming
> I don't know which type in ActiveX component is
> corresponding to the type of Cardinal in VCL.
A Cardinal is a 32-bit unsigned number. The only other type available in
Delphi that cooresponds to that is a LongWord. I don't know if you can use
LongWord in Delphi's ActiveX, though. However, the standard Win32 VARIANT
structure has a ulVal member that can hold a 32-bit unsigned (VT_UI4) value.
Gambit
Many thanks for your help.
Xiaoming