On 5/27/12, dnewbie <r...@myopera.com> wrote: > In C I can write > > OPENFILENAME ofn; > ZeroMemory(&ofn, sizeof(ofn)); > > In D, there is no ZeroMemory. Please help me. >
I've never had to use this with WinAPI. The default .init value usually works well, especially if the struct is well-defined, e.g.: struct Foo { int x; // default 0-initialized float y = 0; // without this y would be NaN by default } I think all bits will be set to 0 for a 'Foo' instance.