G
Guest
Hi all
Is there anybody who tried to use the FieldOffset attribute in Compact Framework? I see the online help, and the Microsoft write "in Explicit type in StructLayout is supported by the .NET Compact Framework". And when I use it, it makes an exception "FieldOffset could not be found". It's very important to me
If somebody can help me, I will thank it very much
(Sorry for bad english :-
Zsomb
ps: here is a simple test cod
using System.Runtime.InteropServices
[StructLayout(LayoutKind.Explicit)
public class testclas
[FieldOffset(0)] public int left; > first exceptio
[FieldOffset(2)] public int right; > and again exceptio
}
Is there anybody who tried to use the FieldOffset attribute in Compact Framework? I see the online help, and the Microsoft write "in Explicit type in StructLayout is supported by the .NET Compact Framework". And when I use it, it makes an exception "FieldOffset could not be found". It's very important to me
If somebody can help me, I will thank it very much
(Sorry for bad english :-
Zsomb
ps: here is a simple test cod
using System.Runtime.InteropServices
[StructLayout(LayoutKind.Explicit)
public class testclas
[FieldOffset(0)] public int left; > first exceptio
[FieldOffset(2)] public int right; > and again exceptio
}