Select the product you need help with
PRB: Can't Use Late Binding When Server Method Uses UDTArticle ID: 184898 - View products that this article applies to. This article was previously published under Q184898 On This PageSYMPTOMS
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
-or-
Compile error: Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound functions. CAUSE
A method that returns or accepts a user-defined type (UDT) cannot be called
when using late binding.
RESOLUTION
To correct this problem, you can use either of the following two solutions:
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCES
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. Properties | Article Translations
|


Back to the top








