In .NET strings are always terminated with character '\0' (see the cryptic comment about VB 6.0 on the description of UnmanagedType.ByValTStr) - if you want to be able to see 4 arbitrary characters after marshalling, then I believe you'll need to use a character array instead of a string.

By on 4/23/2010 8:35 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper