Re: VB6, VB2005, or Something Else?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • kernel panic when running tcpdump
    ... # Firmware Drivers ... # Other IDE chipsets support ... most of these also require special kernel boot parameters ... # Userland interfaces ...
    (Linux-Kernel)
  • Re: Portable module model
    ... ;; for the normal use and one for syntax. ... (any->string (car u)) ... nor validation against their interfaces. ...
    (comp.lang.scheme)
  • Re: Identifier like "_", "$", etc.
    ... "A conforming implementation of ECMAScript is ... permitted to support program and regular expression syntax not described ... implementing the Element interfaces ...
    (comp.lang.javascript)
  • Re: Detecting support for event types
    ... Perhaps I need to use hasFeature first, ... interfaces where the module itself isn't supported, ... figure it's more likely browsers will pretend to support modules than ... dispatch being successful and the dispatch will fail then the DOM ...
    (comp.lang.javascript)
  • Re: Intel WiFi 5100/5300
    ... Intel WiFi 5100/5300 interfaces in the iwn-driver? ... support for these interfaces? ...
    (freebsd-net)