Thank-you very much - it works just fine. You were the only one out of
seventeen experts that I asked who could come up with the solution.
"Mattias Sjögren" wrote:
>
> >Why does the visual
> >basic example not change the structure member "x", but the C# code does?
>
> It has to do with how VB treats boxed value types.
>
> To get the behavior you want, change the type of the o variable to
> ValueType instead of Object.
>
>
> >Is there a bug in visual basic.net? Please help!
>
> This is by design.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
>
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com > Please reply only to the newsgroup.