PRB: Marshaling Support for VT_DISPATCH Not Compatible (326202)
The information in this article applies to:
- Microsoft Visual J++ 6.0
- Microsoft Visual J# .NET (2002)
- Microsoft Visual J# .NET (2003)
This article was previously published under Q326202 SYMPTOMS Incoming Variants of type VT_DISPATCH should be marshaled
as type com.ms.com.Variant.VariantDispatch to Visual J# .NET. However, they are marshaled as type com.ms.com.Variant.VariantObject, instead. CAUSE This behavior occurs because of a limitation in the COM
marshaling layer of the common language runtime. RESOLUTION To avoid this behavior, follow these steps:
- Use the com.ms.com.Variant::getObject method to extract the Java callable wrapper (JCW) for the COM
dispatch interface.
- Use the methods in the com.ms.com.ComLib class to test for support of the interface. (For a more detailed
description, see the "More Information" section.)
STATUSThis
behavior is by design.REFERENCES For more information about Java-language support in .NET,
visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 8/7/2003 |
---|
Keywords: | kbMarshal kbprb KB326202 |
---|
|