www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Re: import std.c.windows.windows;

reply "DNewbie" <run3 myopera.com> writes:
On Tue, Jan 10, 2012, at 10:37 PM, Mike Parker wrote:
 
 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
 

Ok.. I still don't understand why such a 'binding' is needed. Is std.c.windows.windows not enough for everyone? -- D
Jan 10 2012
parent Mike Parker <aldacron gmail.com> writes:
On 1/10/2012 10:57 PM, DNewbie wrote:
 On Tue, Jan 10, 2012, at 10:37 PM, Mike Parker wrote:
 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

Ok.. I still don't understand why such a 'binding' is needed. Is std.c.windows.windows not enough for everyone?

Unfortunately, no. It is not a complete binding of the Win32 API. It has a lot of stuff, but if you need more you need to look elsewhere. Andrej hit on some of the deficiencies in his post.
Jan 10 2012