Board index » cppbuilder » Problems with Bool and activeX

Problems with Bool and activeX


2006-09-28 05:42:39 AM
cppbuilder2
Hi,
Is there a way when creating activeX from existing components to have
functions returning bool to defautlt to TOLEBOOL instead of the VARIANT_BOOL
that BCB6 creates in the newly created ActiveX implementation.
Thanks
John
 
 

Re:Problems with Bool and activeX

"John van de Geyn" < XXXX@XXXXX.COM >wrote in message
Quote
Is there a way when creating activeX from existing components to have
functions returning bool to defautlt to TOLEBOOL instead of the
VARIANT_BOOL that BCB6 creates in the newly created ActiveX
implementation.
No. VARIANT_BOOL is the correct type to use for boolean parameters. In BCB
6, Borland decided not to use as many smart wrappers in interfaces as they
did in older versions.
Gambit
 

Re:Problems with Bool and activeX

Thanks Gambit,
I noticed that in BDS they have gone back again to using TOLEBOOL.
I have a VB application that seems to have some problems using the new ocx
file I created originaly in BCB5.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"John van de Geyn" < XXXX@XXXXX.COM >wrote in message
news:451af05c$ XXXX@XXXXX.COM ...

>Is there a way when creating activeX from existing components to have
>functions returning bool to defautlt to TOLEBOOL instead of the
>VARIANT_BOOL that BCB6 creates in the newly created ActiveX
>implementation.

No. VARIANT_BOOL is the correct type to use for boolean parameters. In
BCB
6, Borland decided not to use as many smart wrappers in interfaces as they
did in older versions.


Gambit


 

{smallsort}

Re:Problems with Bool and activeX

"John van de Geyn" < XXXX@XXXXX.COM >wrote in message
Quote
I noticed that in BDS they have gone back again to using TOLEBOOL.
I have a VB application that seems to have some problems using the
new ocx file I created originaly in BCB5.
I do all of my ActiveX development in BCB 5 and haven't had any problem
using BCB5-written controls in VB.
Gambit