Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 309329 - Last Review: February 23, 2007 - Revision: 3.4
BUG: COM Interop: No Built-in Support VARIANT of Type VT_RECORD
This article was previously published under Q309329
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.
To resolve this problem, construct a custom marshaler that
adds this functionality.
Microsoft has confirmed that
this is a problem in Microsoft .NET Framework SDK.
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.
APPLIES TO
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
| kbmarshal kbbug kbcominterop kbpending kbreadme KB309329 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate