Board index » cppbuilder » BCB4 still cannot use VB5/VB6 ActiveX Controls?
m..
![]() CBuilder Developer |
Sat, 11 Aug 2001 03:00:00 GMT
|
m..
![]() CBuilder Developer |
Sat, 11 Aug 2001 03:00:00 GMT
BCB4 still cannot use VB5/VB6 ActiveX Controls?
Can anyone confirm or deny whether BCB4 can use OCX's created with VB5 or VB6?
I just got my copy of BCB4, and tried creating a simple ActiveX Control in VB6. The ActiveX has one property and one method. The control imports fine into the BCB4 IDE, but when I use the control in a MyActiveXControl->MyProp = 5; // works great! Thanks for any assistance - I've been struggling to get this to work since - Mary -----------== Posted via Deja News, The Discussion Network ==---------- |
Alexis Rio
![]() CBuilder Developer |
Sat, 25 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?VB ActiveX controls are not exactly ActiveX controls internally. If you do an ActiveX control in VC++ it will work with BCB. Quotem...@interactive.net wrote in message <7av0cg$ss...@nnrp1.dejanews.com>... |
Mr. Mik
![]() CBuilder Developer |
Sun, 26 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?I thought ActiveX was a standard that was binary compatible and language independent? QuoteAlexis Rios wrote: Mike / mike_n...@hotmail.com |
aphrae
![]() CBuilder Developer |
Sun, 26 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?It's supposed to be. Here's the problem: activex controls usually present two interfaces, a vtable interface which is theoretically, activex controls are supposed to lay out their methods VB does not always place its methods at the address expected. That is to say, in VC was actually broken by this for a while, as well. We are _very_ aware of the As a workaround, if you go through automation, instead of vtable interface, it Quote"Mr. Mike" wrote: |
Mr. Mik
![]() CBuilder Developer |
Mon, 27 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Quote> As a workaround, if you go through automation, instead of vtable interface, it clicking on ActiveX. Is this using automation or the vtable method?? -- |
aphrae
![]() CBuilder Developer |
Mon, 27 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Vtable. You need to import the type library, and then use that ATL wrapper class, Quote"Mr. Mike" wrote: |
Hans-Jochen Tro
![]() CBuilder Developer |
Mon, 27 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?On Wed, 10 Mar 1999 11:19:55 -0800, aphrael <aphr...@burble.org> wrote: Quote>It's supposed to be. I haven't ever touched ActiveX (have no tool yet), and my BCB4 is to arrive here next week. However, I've had to deal a little with older versions of MS's BASIC (QB45, VBA 16-bit, VB5) and calls to/from it from/to BC++. The dominating issue there was/is the type of argument: by value (C/C++ default) or by reference (BASIC default). If I remember right, the latter is NOT the C++-style reference argument as in void myfunc(int &myarg) ; but rather the C-compatible void myfunc(int *myarg) ; The example given in the post that started this thread showed a standard argument (a constant integer 5), suggesting a by-value convention. Could that play any role ? Cheers, Jochen ************************************ |
aphrae
![]() CBuilder Developer |
Mon, 27 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?QuoteHans-Jochen Trost wrote: The COM marshaller, in this case, requires that it be a pointer Good thought, tho. |
Hans-Jochen Tro
![]() CBuilder Developer |
Mon, 27 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?On Thu, 11 Mar 1999 11:00:16 -0800, aphrael <aphr...@burble.org> wrote: Quote>Nope. :) MyActiveXControl->MyMethod(5); // fails - does nothing which in C/C++ is using a by-value argument, or in C++ possibly a C++-reference style one. If this is expected to be a pointer, all hell may break loose because at byte 5, there could be anything, or nothing. So my concern would still be relevant? Cheers, jochen ************************************ |
Mr. Mik
![]() CBuilder Developer |
Tue, 28 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Quote> Just to get my understanding right: Mary tried to use even compile? -- |
aphrae
![]() CBuilder Developer |
Tue, 28 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?QuoteHans-Jochen Trost wrote: (1) only _out_ parameters are expected to be pointer types. If this isn't (2) The MyActiveXControl wrapper class may obscure the underlying method |
ross
![]() CBuilder Developer |
Fri, 31 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Any chance of a more detailed explanation for those of us just heading down this road! e.g. what is the type library, how do you invoke and use the ATL wrapper class? Quoteaphrael wrote: Ross Ashman Lasers and Bio-Engineering Group Centre for Ophthalmology and Visual Science University of Western Australia |
aphrae
![]() CBuilder Developer |
Fri, 31 Aug 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Answered in private mail. Ross: so that I don't have to write it up again, can you post my response to this? :) Quoteross wrote: |
m..
![]() CBuilder Developer |
Fri, 07 Sep 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Just wanted to thank everyone for the replies. I hadn't heard anything for several days, so I was starting to think not many people were attempting to use VB5/6 ActiveX controls in Builder. Ross, if you could post aphrael's response, I know there's at least one person who would really appreciate it! By the way, for those wondering about parameter pointer syntax, etc., even MyActiveXControl->SayHello(); would not work. Thanks again for responding, everyone. Now at least I know it's not just me! - Mary In article <36ED37E0.C6E7...@burble.org>, Quote> Answered in private mail. http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own |
ross ashma
![]() CBuilder Developer |
Fri, 28 Sep 2001 03:00:00 GMT
Re:BCB4 still cannot use VB5/VB6 ActiveX Controls?Quoteross writes: do an import type library (i think it's under project) on either there will be within those files something that looks like: TCOMIInterfaceName. instantiate that, and then call Quote> aphrael wrote: Lions Eye Institute Lasers and Bio-Engineering Group 2 Verdun St. Nedlands 6009 ph 08 9381 0731 fax o8 9381 0700 |
1. BCB4 still cannot use VB5/VB6 ActiveX Controls
2. Using VB6-created ActiveX controls in Delphi 5 Enterprise
3. Using ActiveX controls in BCB5, programmed with VB6
4. C++ Builder 6 - Import ActiveX Control Problem with VB6 programmed ActiveX
5. Tabbing with ActiveX controls and VB5
6. VB6 ActiveX ADO controls in Delphi5
7. VB6 ActiveX ADO controls in Delphi5
8. has anyone successfully imported any VB6 ActiveX control into BCB
9. has anyone successfully imported any VB6 ActiveX control into BCB 5 or 6