How to implementing the Char data type? #4
MarkJohnstoneGitHub
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to marshall the Char type. Getting the impression not so easy i.e. mscorlib.Char is a one byte structure. Think require a two byte structure for C# unicode Char, so mscorlib.Char structure might be ruled out. Attempted initially passing byref into a COM object a Char and VBA "unrecognised object". Might require a VBA type or COM a struct for unicode Char of two bytes for starters? Ideas still brewing and skirting around Char and using the String parameter versions if possible for now.
Research
UTF-8 Everywhere
Charsets and marshalling
Marshal.SizeOf() is one byte, not two, by default
Marshaling Simple Types
Char.cls
Wide character
UTF-8
COM interop - pass a char[] array
Passing a Reference to a SAFEARRAY as Parameter to a Managed COM
Convert byte[] to char[]
C# ushort[] to string conversion; is this possible?
Beta Was this translation helpful? Give feedback.
All reactions