win32 from master: unicode functions by default?

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 12 21:09:03 PST 2015


On Thursday, 12 November 2015 at 15:58:53 UTC, Jonathan M Davis 
wrote:
> On Thursday, November 12, 2015 05:08:24 Mike Parker via

>> version=Unicode on the compiler command line.
>
> It seems pretty wrong for the A versions to be the default 
> though...
>
> Still, even in C++ code, I've generally taken the approach of 
> using the W functions explicitly in order to avoid any 
> potential problems with A functions being called accidentally. 
> Regardless, the whole A vs W thing with Win32 is not exactly 
> one of its nicer features. :|
>
> - Jonathan M Davis

I've gotten into the same habit. But it appears the switch to 
dynamic loading has made it so that only the A versions or only 
the W versions are available. You no longer get both.

https://github.com/D-Programming-Language/druntime/blob/master/src/core/sys/windows/w32api.d#L85


More information about the Digitalmars-d-learn mailing list