I need to be able to convert a naked pointer to a variant. I know that the pointer points to a variant, but I can't seem to get it back out. A straight cast (as I pretty much thought) fails:
Result := Variant(FAddress)^
returns a compiler error: [DCC Error] E2089 Invalid typecast
I've scoured the variants.pas unit as well, but nothing jumped out at me.
Obviously I'm missing something. What is the way to do this?
Variant(FAddress^)
. I don't see it as any different fromPVariant(FAddress)^
. – Weald