Re: VB6, VB2005, or Something Else?
- From: Andre Kaufmann <andre.kaufmann.bei@xxxxxxxxxxx>
- Date: Thu, 06 Apr 2006 20:28:07 +0200
Robert Conley wrote:
On Wed, 5 Apr 2006, Andre Kaufmann wrote:
[...]
So a VB6.NET could have been a .NET langauge that would have classes, and interfaces but no inhiertance. Since this is a subset of .NET supports then the VB6 object model is no barrier. When you throw in .NETs support of COM then near 100% emulation is possible. (Although performance would have been different).
May be. As I wrote I'm not that familiar with the VB object model.
All I know that COM objects are quite different to handle than the managed objects. The first a reference counted, the second are managed objects.
Plus if you look at VB.NET syntax for inheirtance you will see it dovetails nicely with VB6 interface implementation syntax. Instead of Implements <blah> you have Inherits <blah>.
As for complexity it would be slightly more complex as you would need to support the
<interface_name>_<method_name>
syntax of VB6. But also have a <method_name> Handles <interface_name>.<method_name> as well.
Or just use handles I would have accepted this breaking change if it was only one of a dozen or so. Plus I would accepted it as the new syntax is superior IMO than the old.
IMHO the syntax using "_" char is somewhat weird. I used it in an example callback handler for my COM object events (keyword: with events).
Anyways - even if the object models could not match directly, the "old" one could be converted to the new one and could be supported by both native and managed VB7. That far I would agree.
Regarding backwards compatibility I'm not that experienced enough in VB to be able to make a qualified statement.
Rob Conley
.
- References:
- Re: VB6, VB2005, or Something Else?
- From: Gary Nelson
- Re: VB6, VB2005, or Something Else?
- From: Andre Kaufmann
- Re: VB6, VB2005, or Something Else?
- From: Dan Barclay
- Re: VB6, VB2005, or Something Else?
- From: Andre Kaufmann
- Re: VB6, VB2005, or Something Else?
- From: Bob Butler
- Re: VB6, VB2005, or Something Else?
- From: Andre Kaufmann
- Re: VB6, VB2005, or Something Else?
- From: Robert Conley
- Re: VB6, VB2005, or Something Else?
- Prev by Date: Re: Where is a good introduction to VBA (NOT: VB resp. VB.net) ?
- Next by Date: Re: Can Indirection be used to get the value of a constant?
- Previous by thread: Re: VB6, VB2005, or Something Else?
- Next by thread: Re: VB6, VB2005, or Something Else?
- Index(es):
Relevant Pages
|