Hello. I am trying to send a structure from VB .NET 2008 framework 3.5 to an application made in VC++ 6.0, using SendMessage and WM_COPYDATA. Here is the code:

Code:
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
    Public Structure MsgSTR
        Public code As String
        Public index1 As Integer
        Public index2 As Integer
        Public arr() As Integer
...