Decalring a struct with fixed length character array

  • Thread starter Thread starter Brian Reed
  • Start date Start date
B

Brian Reed

How would I go about creating a struct that has a member with a fixed length
character array? I am trying to call a DLL that requires a struct to be
passed in that contains multiple fixed length character arrays.

Any help would be great.

Thanks,
 
Brian,
How would I go about creating a struct that has a member with a fixed length
character array?

struct Foo
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=123)]
public char[] chars;
}



Mattias
 
Back
Top