BUG: The ByValTStr attribute is incorrectly applied to the fixed-length string member when you upgrade a Visual Basic 6.0 project to a Visual Basic .NET project (834056)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
Microsoft Visual Studio .NET changes the ByValTStr attribute to ByValArray when you upgrade a Microsoft Visual Basic 6.0 project to a
Microsoft Visual Basic .NET project. The ByValTStr attribute is incorrectly applied in Visual Basic
.NET. SYMPTOMSWhen you upgrade a Visual Basic 6.0 project application that
passes a structure to an API to a Visual Basic .NET project application, the ByValTStr attribute is incorrectly applied to the fixed-length string
member.CAUSEThis bug occurs because the ByValTStr attribute in Visual Basic .NET is incorrectly applied after you
upgrade your project application from Visual Basic 6.0 to Visual Basic .NET.
The size of the fixed-length string member of the string buffer that is
marshaled includes the NULL termination character.STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCESFor more information, visit the following Microsoft Web
sites:
Modification Type: | Minor | Last Reviewed: | 2/1/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbString kbDLL kbMarshal kbbug KB834056 kbAudDeveloper |
---|
|