Board index » cppbuilder » using VB-ActiveX in BCB5 and BCB6
Erwin Alberts
![]() CBuilder Developer |
using VB-ActiveX in BCB5 and BCB62003-10-29 01:41:50 AM cppbuilder103 Hello, I'm working on a BCB5 project where I had to use a VB-ActiveX component. This worked fine. Converting the BCB5 project to BCB6 created some problems. It seems that the property definition in the OCX file in BCB6 wasn't completely successful.(?) Code in BCB5: class PACKAGE TClass1 : public Oleserver::TOleServer { . BSTR __fastcall Get_Getal(void) { return GetDefaultInterface()->get_Getal(); } void __fastcall Set_Getal(BSTR Param1/*[in]*/) { GetDefaultInterface()->set_Getal(Param1/*[in]*/); } __property BSTR Getal={ read=Get_Getal, write=Set_Getal, stored=false }; }; code in BCB6 version: class PACKAGE TClass1 : public Oleserver::TOleServer { . . BSTR __fastcall get_Getal(void) { return GetDefaultInterface()->get_Getal(); } void __fastcall set_Getal(BSTR Param1/*[in]*/) { GetDefaultInterface()->set_Getal(Param1/*[in]*/); } __property BSTR Getal={ read=get_Getal, stored=false }; }; Manual changing the differences in BCB6 and recompiling fixed the problem. Did I do something wrong within in the TLB import process? Regards Erwin Alberts |