How to create a DLL

torhu fake at address.dude
Thu Jun 14 16:07:20 PDT 2007


Frank Benoit wrote:
> I try to build a DLL with dmd on windows with tango.
> 
> with empty functions that worked. When i put only a switch statement
> into a method, the linker complains about a missing "__Dmain". Why is that?

Did you include a DllMain?

http://www.digitalmars.com/d/dll.html

Also check out the mydll example the comes with dmd.



More information about the Digitalmars-d mailing list