WinAPI for druntime and OpenGL for deimos.

Tavi Cacina octavian.cacina at outlook.com
Mon Nov 26 00:34:46 PST 2012


On Sunday, 25 November 2012 at 22:09:53 UTC, Manu wrote:
> On 25 November 2012 14:30, Jonathan M Davis 
> <jmdavisProg at gmx.com> wrote:
>
>>
>> I'd actually be halfway tempted to explicitly omit the A 
>> versions simply
>> because you basically should _never_ use them unless you're 
>> supporting
>> Win9x,
>> which we're not.
>>
>
> Except that they're the default, basically all tutorial code 
> and much
> existing code is written to use 8-bit strings. It's really lame 
> there is no
> utf-8 api.

I agree with Jonathan. The Ansi is not quite the default anymore, 
maybe for some old documentation or old code. Unicode is the 
default encoding when you create a new project in Visual Studio, 
in samples they use a lot the TCHAR/LPTSTR-Macros (sometimes the 
wstring). And is clear that you _should_ use the W APIs (directly 
or through UNICODE define) or you are later in trouble.




More information about the Digitalmars-d mailing list