Board index » cppbuilder » TVariantInParam

TVariantInParam


2007-08-06 02:26:08 AM
cppbuilder46
2007 says that TVariantInParam is obsolete. The help does not suggest that,
or what to do.
What do we replace it with?
TOLEBOOL cannot be passed to a TAutoArg without casting to (bool); Why?
Isn't it funny that when I google the TVariantInParam, I only get Chinese
threads.
 
 

Re:TVariantInParam

"Valence" < XXXX@XXXXX.COM >wrote in message
Quote
2007 says that TVariantInParam is obsolete. The help does
not suggest that, or what to do.
Borland deprecated use of smart wrappers, such as TVariantInParam, in COM
method parameters back in BCB 6.
Quote
What do we replace it with?
Use VARIANT directly instead. That is what is being passed in to begin
with.
Quote
TOLEBOOL cannot be passed to a TAutoArg without
casting to (bool); Why?
Probably because it would be ambiquious to do so. TAutoArgs exposes access
to an array of TVariant items. The TVariant class has constructors and '='
operators for both 'bool' and TOLEBOOL values. TOLEBOOL also has a
conversion operator for 'bool'. So a cast is needed in order for the
compiler to know which operators to call.
Gambit
 

Re:TVariantInParam

"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"Valence" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>2007 says that TVariantInParam is obsolete. The help does
>not suggest that, or what to do.

Use VARIANT directly instead.
>TOLEBOOL cannot be passed to a TAutoArg without
>casting to (bool); Why?
Probably because it would be ambiquious to do so. TAutoArgs exposes
access
to an array of TVariant items. The TVariant class has constructors and
'='
operators for both 'bool' and TOLEBOOL values. TOLEBOOL also has a
conversion operator for 'bool'. So a cast is needed in order for the
compiler to know which operators to call.
Thanks.
 

{smallsort}