public struct RIBInterfaceEntry { [MarshalAs( UnmanagedType.ByValTStr, SizeConst=128 )] public string name; int entrytype; int subtype }
Try removing the MarshalAs attribute from the string member.
Mattias
=== Mattias Sjögren [EMAIL PROTECTED]
public struct RIBInterfaceEntry { [MarshalAs( UnmanagedType.ByValTStr, SizeConst=128 )] public string name; int entrytype; int subtype }
=== Mattias Sjögren [EMAIL PROTECTED]