O
Obrecht
Hi.
I am new to VB .NET and am just starting to do some
testing with it. I am trying to define a fixed length
array of structures within a structure. I pass this
structure to a Win32 Btrieve API.
I have one main structure and within that I need to have a
fixed length array of 200 other structures. Below -
shortened versions of the structures.
Thanks,
Jen
<StructLayout(LayoutKind.Sequential, Pack:=1,
CharSet:=CharSet.Ansi)> _
Structure udtBtrGroups
Dim intNumber1 As Short
Dim intNumber2 As Short
End Structure
<StructLayout(LayoutKind.Sequential, Pack:=1,
CharSet:=CharSet.Ansi)> _
Structure udtBtrRecord
Dim intNumber3 As Short
Dim intNumber4 As Short
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=200)> _
Dim udtGroup() As udtBtrGroups
End Structure
I am new to VB .NET and am just starting to do some
testing with it. I am trying to define a fixed length
array of structures within a structure. I pass this
structure to a Win32 Btrieve API.
I have one main structure and within that I need to have a
fixed length array of 200 other structures. Below -
shortened versions of the structures.
Thanks,
Jen
<StructLayout(LayoutKind.Sequential, Pack:=1,
CharSet:=CharSet.Ansi)> _
Structure udtBtrGroups
Dim intNumber1 As Short
Dim intNumber2 As Short
End Structure
<StructLayout(LayoutKind.Sequential, Pack:=1,
CharSet:=CharSet.Ansi)> _
Structure udtBtrRecord
Dim intNumber3 As Short
Dim intNumber4 As Short
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=200)> _
Dim udtGroup() As udtBtrGroups
End Structure