Hello,

I'm wondering how to pass a unicode string to a C function in Mac. 

 

The C export function has the following definition 

 

void  function1(wchar_t *str);

 

In windows wchar_t size is 2 so I thought I can pass a WideString type
casted with PWideChar.

In Mac ,size of wchar_t is 4 in the C library and the size of WideChar in
FPC is 2.

 

In that case how do we convert the 2 byte WideChar to 4 byte wchar_t string?

 

Thanks,

Guru Kathiresan

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to