[fpc-devel] Changing Windows API A routines in SysUtils to W in Windows NT

Sergei Gorelkin sergei_gorelkin at mail.ru
Mon Feb 6 22:14:47 CET 2012


06.02.2012 23:45, Marco van de Voort пишет:
> In our previous episode, Felipe Monteiro de Carvalho said:
>
>> 1>  makes it impossible to support Unicode and support Windows 9x at
>> the same time, but I doubt that Free Pascal wants to drop Windows 9x
>> support (even if it is obsolete).
>
> Afaik we already have. Recent versions require patches for win9x
>
Just in case: I have written a small unicows.dll loader unit (under 10KBytes source code, in 
contrast with >300KByte Rob Kennedy's one) that can be used as a 'last goodbye' for win9x, allowing 
to switch most APIs to 'W'.
The only issue is that it needs to be executed as early as possible, ideally before system.pp 
initialization. This probably can be solved by redefining the entry point passed to linker, or by 
placing its code into yet another sysinit unit, which is selected for win9x.

If this is interesting I can provide more details.

Sergei



More information about the fpc-devel mailing list