Trass3r wrote:
What was the fix? The example in samples/d/mydll compiles fine and looks very much the same.

Note that I'm talking about D2.

1. The path in build.bat is incorrect: is ..\..\..\bin\dmd instead of ...\..\..\windows\bin\dmd
2. printf isn't defined by default anymore.
3. The gc code etc in DllMain is for D1 I guess. I used code from http://www.digitalmars.com/d/2.0/dll.html instead.
4. HINSTANCE g_hInst; wasn't (__g)shared

These were fixed in dmd-2.042. I guess you are using an earlier version of the example.

Reply via email to