Board index » cppbuilder » BCB 5 and VB ActiveX Controls
Harol
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
|
Harol
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
BCB 5 and VB ActiveX Controls
I have attempted to import 2 different Visual Basic 6.0 ActiveX controls
into BCB 5. The controls seem to import successfully but they never get placed on the tools palette. I leave all settings to the default for the import (the ActiveX panel is where they are supposed to get installed). The project I am working on is on delay because of this. Originally, it was Anyone with a work-around or information about this particular problem, Thank you! |
aphr..
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsIn article <89oor3$q...@bornews.borland.com>, QuoteHarold <hbl...@pxlmagic.com> wrote: do not have the 'CAN_CREATE' flag set --- so the importer, which believes that controls that don't have CAN_CREATE set aren't creatable, ignores them. I have contacted MS to complain about this and they claim (a) that it TLIBIMP.EXE (the command line version of the importer) has an undocumented tlibimp -C+ -Yu -H+ -Q+ -R+ foo.ocx and then add the files into your package, the package will contain -- |
Harol
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsAlas, this did not solve the problem and gave me the same results as using the IDE import ActiveX control did. Essentially, it makes all the files but the *_ocx.cpp file, which should contain the methods/etc of the ocx instead contains only an empty namespace block and that is all. Thank you. Quote<aphr...@magescave.blackforest.org> wrote in message Quote> In article <89oor3$q...@bornews.borland.com>, |
aphr..
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsIn article <89p5d4$q...@bornews.borland.com>, QuoteHarold <hbl...@pxlmagic.com> wrote: (File|Open, with the .tlb mask set), and check the following flags on the coclass: if either hidden or restricted are set, you also need to pass the Quote>Thank you. Si vales, valeo. |
Harol
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsStill no joy. The coclass indicates Control. I have used all options for overriding the hidden/restricted/etc attributes (in fact, it was the first thing I tried after the initial tlibimp idea failed). I begin to wonder if there is some Visual Basic option or other that HAS to I continue to persevere in my search for a solution. If found, I will post Thank you for the suggestions! Quote<aphr...@magescave.blackforest.org> wrote in message Quote> In article <89p5d4$q...@bornews.borland.com>, |
aphr..
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsIn article <89peqo$q...@bornews.borland.com>, QuoteHarold <hbl...@pxlmagic.com> wrote: OK, here's another thought. In _OCX.H, check and see if there is Quote>I begin to wonder if there is some Visual Basic option or other that HAS to windowless activated, we can't host it. But the behavior you are getting is not indicative of that being the problem; control wrappers would be generated for such controls, and then would fail at runtime. If you aren't getting controls at all, something else is going on. If you would like, upload the .ocx to .binaries, and then send me mail Robert West |
Alex Bakaev [TeamB
![]() CBuilder Developer |
Tue, 20 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsQuoteHarold wrote: Quote> I continue to persevere in my search for a solution. If found, I will post alex |
Edward Diene
![]() CBuilder Developer |
Wed, 21 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsPerhaps Borland should add some flexibility to their Import ActiveX wizard that allows the user to tweak the import settings from the IDE. This would make it easier to get around those ActiveX controls which don't quite follow the accepted standards regarding flags, without having to invoke a command line syntax. Quoteaphr...@magescave.blackforest.org wrote: |
Chris Bense
![]() CBuilder Developer |
Fri, 23 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsHow about this: tlibimp -C+ -Yu -H+ -Q+ -R+ foo.tlb foo.tlb being the modified type library that has the CAN_CREATE flag. Chris Quote<aphr...@magescave.blackforest.org> wrote in message Quote> In article <89peqo$q...@bornews.borland.com>, |
aphr..
![]() CBuilder Developer |
Fri, 23 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsIn article <38C10CE5.C9DD3...@abraxis.com>, Edward Diener <eddie...@abraxis.com> wrote: Quote>Perhaps Borland should add some flexibility to their Import ActiveX wizard that took priority over it ... -- |
aphrae
![]() CBuilder Developer |
Fri, 23 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsThe undocumented hack appears to not work in all cases -- only in ones where the control is marked APPOBJECT. (This makes sense --- when I added the hack workaround, I was trying to be _extremely_ restrictive, as I was strongly of the opinion that things that are not 'creatable' are, simply put, not creatable. The APPOBJECT override was needed because of the inherent contradiction in having an APPOBJECT which isn't creatable, but I didn't want to overextend the ability ... Maybe that needs to be revisited.) I opened up the .ocx, changed the CAN_CREATE flag, and saved it to a .tlb, QuoteHarold wrote: |
Tze Weng Foon
![]() CBuilder Developer |
Sat, 31 Aug 2002 03:00:00 GMT
Re:BCB 5 and VB ActiveX ControlsCan some one please summerise what was the result of this thread.. I have read it but its not clear as to the outcome... Thanks in advance... TW Quoteaphrael wrote: |
1. Imported VB ActiveX Control does not work in BCB 6
2. BCB Created ActiveX under MS VB - HELP!!!
3. Trouble Using BCB 3.0 ActiveX Components in VB 5.0
5. Problem with VB OCX control called from a thread in BCB
6. Using VB Serial COMM control in BCB
7. Problem with ActiveX control written in VB
8. Converting from VB - Problems with an ActiveX control