Symbol Undefined _EnumWindows at 12

Adam D. Ruppe destructionator at gmail.com
Thu Jan 23 09:27:04 PST 2014


On Thursday, 23 January 2014 at 17:22:55 UTC, AntonSotov wrote:
> alias int function (void*, long)  WNDENUMPROC;
> extern (Windows) int EnumWindows(WNDENUMPROC, long);

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".


More information about the Digitalmars-d mailing list