Microsoft KB Archive/309329

= BUG: COM Interop: No Built-in Support VARIANT of Type VT_RECORD =

Article ID: 309329

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-



This article was previously published under Q309329



SYMPTOMS
In COM, a VARIANT that contains a structure is of type VT_RECORD. Similarly, a SAFEARRAY is of type VT_RECORD when its element types are structures. In Beta 2, VARIANTs of type VT_RECORD and SAFEARRAYs of type VT_RECORD are not supported by COM interop.



RESOLUTION
To resolve this problem, construct a custom marshaler that adds this functionality.



STATUS
Microsoft has confirmed that this is a problem in Microsoft .NET Framework SDK.



MORE INFORMATION
In the release build, support has been added for SAFEARRAYs of structures. VARIANTs of type VT_RECORD continue to be unsupported by the COM interop facilities.

Additional query words: kbreadme

Keywords: kbmarshal kbbug kbcominterop kbpending kbreadme KB309329

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.