Article ID: 184898 - View products that this article applies to.
This article was previously published under Q184898
When you have an ActiveX server that you created with Visual Basic version 6.0, you receive an error when accessing a method or property that accepts and/or returns a user-defined type (UDT).
You receive one of the following errors when accessing a method that returns a UDT or accepts a UDT as an argument:
Run-time Error '429':
ActiveX component can't create object
Only user-defined types defined in public object modules can be coerced
to or from a variant or passed to late-bound functions.
A method that returns or accepts a user-defined type (UDT) cannot be called when using late binding.
To correct this problem, you can use either of the following two solutions:
Steps to Reproduce Behavior
For information about binding ActiveX components in your project, refer to the "Declaring an Object Variable" and "How Binding Affects ActiveX Component Performance" topics in the Visual Basic product documentation.
For information about creating your own collection classes, refer to the "Using Properties and Collections to Create Object Models" topic in the Visual Basic product documentation.
Contact us for more help
Connect with Answer Desk for expert help.