MikeNovy
May 28th, 2004, 08:43 AM
Hi,
I'm really dissapointed from C#.
I have to create a struct, which size is defined.
The struct contains an array of bytes, but the compiler doesn't allow me to set up the size.
A work around with
[MarshalAs(UnmanagedType.ByValArray, SizeConst=10)]
doesn't work, too - becaus I'm using the Compact Framework for a PocketPC application.
Ist there another way??
Please help me.
I'm really dissapointed from C#.
I have to create a struct, which size is defined.
The struct contains an array of bytes, but the compiler doesn't allow me to set up the size.
A work around with
[MarshalAs(UnmanagedType.ByValArray, SizeConst=10)]
doesn't work, too - becaus I'm using the Compact Framework for a PocketPC application.
Ist there another way??
Please help me.