import std.c.windows.windows;
Mike Parker
aldacron at gmail.com
Tue Jan 10 05:37:35 PST 2012
On 1/10/2012 10:24 PM, DNewbie wrote:
> I'm not sure I understand.. The page at http://dlang.org/windows.html says
>
> Instead of the:
> #include<windows.h>
> of C, in D there is:
> import std.c.windows.windows;
>
> However, the samples at https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples
> use
>
> import win32.windef;
> import win32.winuser;
>
> My question is which one should I use in my programs?
>
Those samples use a binding to the Win32 API[1] that does not ship with
DMD. So in your case, std.c.windows.windows is probably what you want
for now.
[1]http://dsource.org/projects/bindings/wiki/WindowsApi
More information about the Digitalmars-d-learn
mailing list