Page 1 of 1

WinCE compatibility

Posted: 24.12.2017, 16:56
by ertank
Hello,

I am trying to make the library compatible with WinCE platform.

As to my trials, I face PChar() -> PWideChar() conversions in the code. However, I got stuck in ZAbstractRODataset.pas file. CharToOem() and OemToChar() functions seems undefined for WinCE platform. I could not see where I can fix this so far.

I would like to ask if this compatibility is feasible in terms of idea. If not I shall not try further and stop where I am.

Thanks & regards,
Ertan

Re: WinCE compatibility

Posted: 25.12.2017, 08:44
by Fr0sT
I doubt OEM conversion is ever needed for anything... it's something ancient from the DOS ages. I'd say you could just make this stuff unavailable under WinCE platform.

What PChar() -> PWideChar() conversion problems do you face?

Re: WinCE compatibility

Posted: 25.12.2017, 10:32
by ertank
Nothing so far about PChar() -> PWideChar() coversions.

Re: WinCE compatibility

Posted: 27.12.2017, 23:01
by marsupilami
Hello Ertan,

Windows CE is more or less dead, I think. But that shouldn't stop you from developing if you need it or if you have fun doing it. I am willing to accept patches, if they don't break other targets :o)

Regarding CharToOem and OemToChar: OEM only has a meaning on the regular Windows for PCs. Windows CE never supported DOS applications and so OEM doesn't have a meaning there. If you really need these functions you could create some stubs that only get used on Windows CE and just return the same string that is given to them without any conversion.

With best regards,

Jan