64bit window headers

Mike Parker aldacron at gmail.com
Mon Jun 17 01:41:51 PDT 2013


On Monday, 17 June 2013 at 07:46:46 UTC, PewPew wrote:

>
> 32/64 bit handled by defines, __WIN32__ etc.
> FucnA - for 32 bit, FuncW - for 64 bit.

This is wrong. The *A functions deal with ascii strings, whereas 
the *W functions deal with unicode strings. Functions that 
neither return nor accept strings do not have A/W variants.

Also, __WIN32__ does not indicate a 32-bit platform. 
Traditonally, it referred to the Win32 API, which once upon a 
time did mean a 32-bit platform, but officially that API is now 
referred to as the "Windows API", a combination of Win32 and 
Win64. __WIN32__ is always defined even on 64-bit Windows. You 
can read more about the difference here at the MS technet[1].

Essentially, any Win32 API modules created to interface D with 
that API can be used on both 32- and 64-bit. The functions are 
the same.

[1] http://technet.microsoft.com/en-us/library/bb496995.aspx



More information about the Digitalmars-d-learn mailing list