- To use MarshalStringsAs, you first need to load .NET/Link using Needs["NETLink`"].
- Possible values are:
"ANSI" strings will be sent as single-byte C-style strings (default) "Unicode" strings will be sent as 2-byte Unicode strings Automatic strings will be sent in the platform's default format
- The Automatic setting picks the platform default ("Unicode" on Windows NT/2000/XP, "ANSI" on 98/ME). Automatic should rarely be used, as it is intended mainly for certain Windows API functions that automatically switch behaviors on different versions of Windows.