Good day.
How do I tell my project that it use the W Aliases from the Windows API instead of the A Aliases?
By looking inside of Windows.pp I do see:
{$ifdef FPC_OS_UNICODE}
{$define UNICODE}
{$endif}
followed later by
{$ifdef UNICODE}
{$i unidef.inc}
{$else not UNICODE}
{$i ascdef.inc}
{$endif UNICODE}
By doing:
unit Unit1;
{$DEFINE FPC_OS_UNICODE}
{$DEFINE UNICODE}
{$mode delphiunicode}
{$modeswitch m_default_unicodestring}
It still points me to the Ansi versions, but I want the Wide versions to be used without adding "W" to the API methods.
{$DEFINE FPC_OS_UNICODE}
{$define UNICODE}
inside Project Options / Custom Options / Conditionals has also no effect.
Also the -WA switch has no effect.
What is the correct way of how it should be done please?
Answers that telling me to simply put a W at end I really not need to get.
Thanks in advance!
(At the end I want to have this behavior: a ctrl+click on "GetBinaryType" jumps into unidef.inc and of course uses it also)