making a really simple dll.

Adam D. Ruppe destructionator at gmail.com
Thu Aug 18 12:17:27 PDT 2011


We should make a mixin template DllMain that has a generic main.

import std.dll;

void myDllProc() { }

mixin DllMain!myDllProc;


I did this with my cgi.d and like it alot - the templated main saves
a lot of boilerplate.


More information about the Digitalmars-d-learn mailing list