[fpc-devel] WinCE port windows.h
Florian Klaempfl
florian at freepascal.org
Sat Aug 13 23:45:36 CEST 2005
Oro06 wrote:
> 1°)actual (wince 4.2) windows.h need at :
> windef.h, types.h, winbase.h, wingdi.h, winuser.h, winreg.h, shellapi.h,
> ole2.h, imm.h, tchar.h, excpt.h, strsafe.h
>
> actual window.pp (from fpc 2.1.X) look at :
> base.inc, errors.inc, defines.inc, struct.inc, messages.inc, ascfun.inc,
> unifun.inc, unidef.inc, ascdef.inc, func.inc, redef.inc
>
> considering that :
> - many blocks are common, just organized differently (many wince
> declarations i just seek in existing win32 code was already there but
> in the wrong dir !)
> - windows.pp organisation is clearer
> - it will be easier to maintain having in the same file, same kind of
> code (even for different targets but wince is also 32bits, it's very
> close to win32)
> - there will also the win64 port question
>
> i propose :
> a- move existing win32 files windows.pp + base.inc+errors.inc,
> defines.inc, struct.inc, messages.inc, ascfun.inc, unifun.inc,
> unidef.inc, ascdef.inc, func.inc, redef.inc
> to rtl\win dir
> b-add the following defines in every .inc file
>
> in the interface defined block and also in the implementation block
>
> put here all common blocks
> {$ifdef WIN32}
> at first, put here all existing code, then copy/paste to the common
> block according to wince headers
> {$endif} //WIN32
> {$ifdef WINCE}
> put here all wince only code
> {$endif} //WINCE
>
> Any comment ?
As Yury said, MS doesn't share the headers either so I think it's better
to keep them completely independend.
More information about the fpc-devel
mailing list