Re: Marshalling strings as fixed length WITHOUT null terminator.
From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 02/21/05
- Next message: Freddie: "WebBrowser Scrollbar Document Positioning"
- Previous message: D. Arndt: "Re: Do you validate incoming parameters?"
- In reply to: Tajmiester: "Marshalling strings as fixed length WITHOUT null terminator."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Feb 2005 21:08:52 +0100
>How can i make it marshall the strings as "proper" fixed length
>strings, where the full 8 (or 3) characters can be stored without having to
>extend the length of the strings.
Replace the strings with char[] and change the marshaling setting to
ByValArray.
Mattias
-- Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
- Next message: Freddie: "WebBrowser Scrollbar Document Positioning"
- Previous message: D. Arndt: "Re: Do you validate incoming parameters?"
- In reply to: Tajmiester: "Marshalling strings as fixed length WITHOUT null terminator."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|