BUG: The Visual Basic .NET or Visual Basic 2005 Upgrade Wizard reports an incorrect warning message for user-defined data types (814601)
The information in this article applies to:
- Microsoft Visual Basic 2005
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSIf you use Visual Basic Upgrade Wizard on your Microsoft
Visual Basic 6.0 project with a user-defined data type, the wizard generates a
warning message for the code with user-defined data type assignments. For
example, you may receive the following warning message for a direct
user-defined data type assignment. UPGRADE_WARNING: Could
not resolve default property of object <<UDT>>. Click for more
information:
'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup1037' CAUSEThe wizard incorrectly treats the user-defined data type
variables as a class object, and then tries to locate the default property for
the object. The user-defined data type does not have default properties.
Therefore, the wizard cannot locate a default property, and it reports an
incorrect warning.RESOLUTIONYou can directly assign one user-defined data type to
another, or you can make a member wise copy between the user-defined data type
variables. You receive the warning messages only if you create a direct
user-defined data type assignment between the variables.
You can
safely ignore these warning messages in Visual Basic .NET or Visual Basic 2005 code. However,
instead of using a direct assignment, you can perform a member wise deep copy
between user-defined data type variables to suppress the warning
messages.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
317885
How to use the Visual Basic Upgrade Wizard
| Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
|---|
| Keywords: | kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbBug kbMigration kbconversion kbconvert KB814601 kbAudDeveloper |
|---|
|