[fpc-devel] Incompatibilities between win32 windows unit and wince windows unit

Aleš Katona almindor at gmail.com
Sun Jan 7 10:55:09 CET 2007


On Ne, 2007-01-07 at 00:23 -0200, Felipe Monteiro de Carvalho wrote:
> Hello,
> 
> I am porting fpgfx to Windows CE. During this work I noticed a lot of
> incompatibilities between win32 windows unit and wince windows unit.
> Trivial stuff, like a parameter is var on win32, but is a pointer on
> wince.
> 
> Is there any special reason why it´s like that? Should we try to get
> both units as compatible as possible? Can I send a patch for that?
> 
> thanks,

I'm not an expert on the windows unit but I encountered similar problems
among platforms and I think we should defenetly go for compat. The best
thing you can do (so nobody can say anything) is "complement" both ends.
So eg:

you got this in 2 windows unit:

W1. function A(const data): Pointer;

W2. function A(data: Pointer): Pointer;

Best is to complement both W1 and W2 so they both have both overloaded
versions. It's not nice, but this way you ensure 100% compat and
everyone is happy. Ofcourse since WINCE isn't stable yet it might be
cleaner to just copycat the windows ones into it.

Ales




More information about the fpc-devel mailing list