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

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Feb 8 13:14:48 CET 2012


2012/2/8 Tomas Hajny <XHajT03 at hajny.biz>:
> If your intention was to keep the programs
> working with Win9x, this won't help because the program containing
> unresolved imports wouldn't start anyway. Is there any other reason?

Windows9x has all W functions, Microsoft added them as stubs to avoid
this kind of problem. They all exist and they all simply don't do
anything so a runtime check is appropriate. There will be no
unresolved imports error. We do this in a similar fashion in Lazarus
since maybe 5 years without problems and it always ran correctly in
Windows 9x.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list