Dela via


Binary Compatibility Changes for Visual Basic 6.0 Users

Visual Basic 2008 updates the mechanism for preserving compatibility with older versions of a component.

Binary Compatibility

Visual Basic 6.0

In Visual Basic 6.0, the Binary Compatibility option allows you to automatically retain class and interface identifiers from a previous version of a component when you compile a new version. The new version contains both the old identifiers and the new identifiers, and client applications can continue using the old interface to your component without having to be updated.

Visual Basic 2008

In Visual Basic 2008, binary compatibility is accomplished using attributes. This gives you direct control over the information placed in your compiled component, such as class and interface identifiers, virtual table offsets, and any appropriate COM attributes. Because you can explicitly select attributes for preservation, the Binary Compatibility option of Visual Basic 6.0 is not supported.

See Also

Concepts

Attributes Overview in Visual Basic

Attributes Used in Visual Basic

Global Attributes in Visual Basic

Programming Element Support Changes Summary

Reference

ComClassAttribute Class