D, windows developement, frustration and fish

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 1 04:07:26 PST 2015


On Sunday, 1 February 2015 at 11:58:22 UTC, ketmar wrote:
> yet dmd still insists on having that `.init`. and there are no 
> non-zero
> defaults for winapi bindings, so i'm fine with such hacks. ;-)

Hmm, this:

import win32.winbase; void main() { PROCESS_INFORMATION pi; }

compiles and links for me just with `dmd test2`.

> my own
> modules are built properly by my build system, so there are 
> `.init`s for
> all necessary structs.

You can just add win32/winbase.d or whatever to the compiler 
command line. rdmd will do this for you if you use that.


More information about the Digitalmars-d mailing list