Objects of type vbDataObject are not supported
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Objects of type vbDataObject are not supported

Visual Studio .NET 2003

In Visual Basic 6.0, objects created in C++ that did not support the IDispatch interface were treated as a Variant with a type of 13 (vbDataObject). In Visual Basic .NET, objects that do not support IDispatch are no longer allowed.

During upgrade, any reference in code to VarType() = vbDataObject or VarType() = 13 will be flagged with a warning.

What to do next

  • Remove the line of code, or modify it to use a different object.
  • If you have access to the source code for the object, modify it to support IDispatch.

See Also

Preparing a Visual Basic 6.0 Application for Upgrading

© 2015 Microsoft