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

Sven Barth pascaldragon at googlemail.com
Mon Feb 6 21:31:52 CET 2012

On 06.02.2012 21:19, Thaddy wrote:
> On 6-2-2012 21:07, Sven Barth wrote:
>> The check you are talking about in C++ is a compile time define that
>> just switches the defines for e.g. CreateProcess to CreateProcessW or
>> CreateProcessA (depending on whether UNICODE is defined or not when
>> including the Windows headers).
>> There is no other "magic" in Windows that changes the imports at runtime.
> Nope, but a compiler should choose the_optimum_ for the platform.
> Otherwise you can hand-code it.
> The A/W versions of the windows API have been in Delphi at least since
> D3, but I can check D2 in a minute.
> Of course it's a compile time switch! Point made by me in the first place.

No, you said that it's a PE flag. That is a completely different thing 
than a preprocessor macro.


More information about the fpc-devel mailing list