Symbol Undefined _EnumWindows at 12

Jacob Carlborg doob at me.com
Thu Jan 23 11:27:47 PST 2014


On 2014-01-23 18:27, Adam D. Ruppe wrote:

> These shouldn't be longs. You could call them LPARAM (import
> core.sys.windows.windows) or int.
>
> A "long" in C is actually an "int" in D. D's "long" is more like C's
> "long long".

A "long" in C is actually a D "int" on Windows. On Posix it's a D "int" 
when compiling for 32bit and a D "long" when compiling for 64bit. This 
is a simplification that holds for the most common platforms available 
today. For more details see:

http://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list