[D-runtime] druntime fixes again break Windows DLL support
Don Clugston
dclugston at googlemail.com
Wed Apr 20 07:49:26 PDT 2011
On 20 April 2011 16:22, Sean Kelly <sean at invisibleduck.org> wrote:
> The helper modules were moved to core.sys.windows. I prepended an underscore because I thought they'd be for internal use. Alternate suggestions welcome.
They're ugly and look like internal functions. I think just give them
nice names.
In fact, how about a wrapper function for the whole mess?
extern (Windows)
BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved)
{
return standardDllMain(hInstance, ulReason);
}
Any other required work can be done after the standard handler.
I make a lot of C-callable DLLs (in fact, it's ~75% of my D
programming) and they're all like this.
We might need a different wrapper for D-callable DLLs.
Obviously the low-level stuff needs to be available, but if there's a
simple wrapper, they can stay ugly.
More information about the D-runtime
mailing list