Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about convert VCL data type to ActiveX data type.

3 views
Skip to first unread message

Ma Xiaoming

unread,
May 10, 2008, 8:58:01 PM5/10/08
to
Dear ladies and gentlemen,

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


Remy Lebeau (TeamB)

unread,
May 12, 2008, 1:13:13 PM5/12/08
to

"Ma Xiaoming" <maxiaom...@hotmail.com> wrote in message
news:4826...@newsgroups.borland.com...

> 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


Ma Xiaoguang

unread,
May 12, 2008, 8:53:16 PM5/12/08
to
Hi Remy,

Many thanks for your help.

Xiaoming


0 new messages