Export (0) Print
Expand All
Expand Minimize

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

Show:
© 2015 Microsoft