How are Visual Basic 6.0 late-bound objects upgraded?
Both Visual Basic 6.0 and Visual Basic .NET support late-bound objects. However, during the upgrade process, late-bound objects can introduce problems when default properties are resolved, or in cases where the underlying object model has changed and properties, methods, and events need to be upgraded. There are two ways to correctly upgrade late-bound objects: • You can rewrite the original Visual Basic 6.0 code using early-bound objects, so that the upgrade wizard will upgrade it automatically. • You can modify the Visual Basic .NET code obtained after the upgrade process to eliminate unnecessary late-bound variables and manually upgrade the affected class members. You could also use the Visual Basic Upgrade Companion as an alternative solution to the late-bound variable problem. Its Type Inference feature deduces the most appropriate data types for variables, parameters, and returns values, and avoids using generic data types such as Object. When the companion tool encounters an Obj