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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html NEW! GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8