Markus Gerwinski wrote:
Frank Heckenbach wrote:
Markus Gerwinski wrote:
I think in that case I'll rather work around the wchar, just treating any `WideString' as a pointer.
That's certainly possible, if you can afford to treat it in an opaque way.
One more possible solution: In my C layer, I'll transform any wchar_t into its unicode char representation before passing it to the Pascal interface. So there shouldn't be any data loss at all.
What do you mean by "unicode char representation"? I thought wchar_t was just that. Or do you mean the 7/8 bit representation of chars that exist in that charset (ASCII/Latin1/...)? But what about other chars then?
Or do you just mean you transform them to an integer of known size (such as `int' = `CInteger')?
Frank