I have a C # COM server that is consumed by the cpp client.
One of the C # methods returns a string.
In cpp, the returned string is represented in Unicode (UTF-16), at least according to the kind of memory.
- Is this always the case with COM strings?
- Is there a way to use UTF-8 instead?
- I saw some code where strings were passed between cpp and C # as arrays of bytes. Is there any use in this?
source
share