For DLLs, what does export actually do?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Feb 16 06:52:23 PST 2013


On 2/16/13, Ben Davis <entheh at cantab.net> wrote:
> Certainly DllMain
> isn't appearing in my export table, yet I've established (by calling
> MessageBoxA from inside DllMain - that was brave of me, wasn't it? :P)
> that it is being called. :)

It's handled by the compiler itself, e.g.:
https://github.com/D-Programming-Language/dmd/blob/master/src/backend/out.c#L1256


More information about the Digitalmars-d-learn mailing list