[fpc-devel] Re: Changing Windows API A routines in SysUtils to W in Windows NT
pascaldragon at googlemail.com
Mon Feb 6 21:41:28 CET 2012
On 06.02.2012 21:07, Thaddy wrote:
> On 6-2-2012 21:04, Craig Peterson wrote:
>> In C on Windows the UNICODE symbol controls whether undecorated
>> functions should use the A or W versions, and what the TCHAR symbol
>> translates to.
> This exactly the case and I do noy suggest this to be dropped. (This is
> not only C but also FP-C btw)
But in FPC you'll need to recompile the Windows RTL if you want to have
UNICODE defined (thus having e.g. CreateProcess default to
CreateProcessW instead of CreateProcessA). In C you just include the
header with the define either defined or not.
More information about the fpc-devel