Dieter,
>I know there is no UNION keyword in VB.NEt, but how can i solve this in
>VB.NEt ?
Usually with a Structure decorated with the
<StructLayout(LayoutKind.Explicit)> attribute, and then explicit
FieldOffset attributes on each member to make them overlap.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
DPC - 28 Dec 2004 15:44 GMT
is it ok to replace a union by a struct
then i have a struct in a struct
> Dieter,
>
[quoted text clipped - 6 lines]
>
> Mattias
Mattias Sj?gren - 28 Dec 2004 16:18 GMT
>is it ok to replace a union by a struct
Yes
>then i have a struct in a struct
That shouldn't be a problem.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.